如何通过目标C上传文件? [英] How to upload file through objective C?

查看:197
本文介绍了如何通过目标C上传文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一个关于iPhone上的目标C的问题。我想上传一个文件(实际上我把所有的数据存储在一个NSString中)到一个服务器上。然而,我不知道该怎么做,我已经检查了苹果开发者的网站,我知道有一个函数称为$ $ c $连接:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite: ,但似乎是错的。任何人都可以帮助我,并提供一些示例代码给我?

解决方案

我发现这是答案
http://cocoadev.com/index.pl?HTTPFileUpload


I want to ask a question about the objective C on iPhone. I want to upload a file (actually I store all the data in a NSString) to a server. However, I have not idea of how to do, I have checked the website of the Apple Developer, and I know there are a function called connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:, but it seems wrong. Can anyone help me and provide some sample code to me? Thank you very much.

解决方案

I found this is the answer http://cocoadev.com/index.pl?HTTPFileUpload

这篇关于如何通过目标C上传文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆