IPhone: transfer files from Mac / Pc to application

I need to transfer binaries from my computer / mac to my application. I want my users to upload sound files. Do I need to start a web server that a user can connect to Wi-Fi?

What are the steps that I have to follow to get started and run?

+4
source share
2 answers

In my applications, I use open-source cocoahttdserver . It is pretty trivial to configure in your application and connect to a computer using the same network. They have an example with an iPhone sample, which you can pretty much cut and paste for basic functionality.

+3
source

Do you need to transfer files programmatically or through a graphical interface? If you can use the graphical interface, enable file sharing and use iTunes> iPod> Applications> File Sharing to drag / drop files into and out of the application’s document folder.

If you need to do this programmatically, here is a technical note describing various strategies for this: http://developer.apple.com/library/ios/#technotes/tn2152/_index.html

+1
source

Source: https://habr.com/ru/post/1300955/


All Articles