iOS with Ituns extract files under documents to local

Source: Internet
Author: User

Source: http://blog.csdn.net/jianandjan/article/details/50442988

Some apps require users to upload and download documents by using itunes. To let iOS programs support itunes File Exchange is actually very simple,
Just Info.plist add a key to the program: UIFileSharingEnabled ( Application supports iTunes file sharing ), assign the value YES .

This way, when the computer is running after compiling, the device is connected to itunes and the file is exchanged.

If you are testing in iOS simulator, you can place the file under the user directory of the application Documents . To know the path of the user directory under OSX,
You can NSLog(@"%@", NSHomeDirectory()); run it and you'll know.
The user home directory under OSX has a path similar to this:
/Users/venj/Library/Application Support/iPhone Simulator/4.3.2/Applications/158C149B-FF57-4C62-AEDB-DFB7A3BD8AFB

iOS with Ituns extract files under documents to local

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.