开发者

iphone - how do I create a bundle and put files on it at run time

My app generates 3 files every time the user saves a project. I would like to be able to build a bundle at run time, and save all files to that bundle and save it to the app's directory. So if the user wants to move the project to the desktop its just the matter of dragging one bundle (= a directory that looks like a f开发者_StackOverflow社区ile, like the Mac OS X apps and Pages files)...

I googled around and found nothing.

How do I do that at run time?

thanks.


Bundles are really just folder hierarchies conforming to a specific structure – see the Bundle Programming Guide. You can use NSFileManager to create the folders in question, NSPropertyListSerialization to create the Info.plist, etc.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜