简体   繁体   中英

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

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 some 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM