Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Share Files Between my iPhone App and a Mac/PC

I have developed an iPhone app which stores photos in the /Documents directory of my app.

I would like to add a feature which gives to the user the opportunity to transfer those pictures to his/her PC or Mac.

I don't really know how to do that. What is the best way, using Bonjour, bluetooth, or directly USB (if it is possible) ? I really need some advices on that point ...

Any ideas ?

PS: Forgive my English, I am French :-)

like image 740
rmonjo Avatar asked Dec 02 '25 01:12

rmonjo


1 Answers

Try NSNetService to register the service in Bonjour, and NSFileHandle to send data over a socket connection associated with the service.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!