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