开发者

iPhone: How to Share/Move Files from App Directories to Other Devices

开发者 https://www.devze.com 2022-12-22 16:51 出处:网络
I have an app which generates some files in the app directories I need users to be able to access the files from another device/computer via file sharing over wifi, using a web browser, a ftp client

I have an app which generates some files in the app directories

I need users to be able to access the files from another device/computer via file sharing over wifi, using a web browser, a ftp client or some similar method.

Can the iPhone act as a http server and ftp server by itself or do I need to do s开发者_Go百科ome programing to make the http server and ftp server by myself?

Thanks

interdev


The code examples for Erica Sadun's rather excellent 3.0 edition of the iPhone Developer's Cookbook are downloadable at github. She has two chapters on various modes of networking including an example HTTP server.


The iPhone has no built-in web or ftp server. So if you want this functionality to be part of your application then you will have to include one in your code.


CocoaHTTPServer is an excellent library for this purpose, widely used also in iPhone apps. It has a good documentation and working example projects, even for iPhone.

0

精彩评论

暂无评论...
验证码 换一张
取 消