开发者

Copy file to/from NSDocumentDirectory during dev

I'm playing with NSDocumentDirectory and saving files on my iPhone. I have created a dictionary and saved it successfully to NSDocumentDirectory and I can re-load it upon re-launch of my app. However, during development I would like to actually browse and copy files to and from NSDocumentDirectory. I开发者_运维百科s there a way via X-Code or Finder or iTunes to see the contents of my app's NSDocumentDirectory?

The real goal here to move a file generated on my iPhone to my iPad, but starting with copying back and forth from Mac to device would be great!

Any advice is much appreciated.


You can transfer files to / from app's Document directory through the File sharing feature in iTunes. To do so, you have to set UIFileSharingEnabled property to YES in your app-info.plist. See this question if you have problems setting it up.


Download iFunBox. It will allow you to access the IOS file system.

The latest version is here.


IPhoneExplorer is available for Mac and Windows.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜