开发者

Can you pre-populate an iPhone Apps Caches or Document Directory with data in XCode?

I have an iPhone application that downloads images into the Caches directory on an as needed basis. However, I'd like to provide a portion of those images pre-cached. Is there a way through XCode to define a "Library/Caches" folder that will copy into开发者_高级运维 the Library/Caches folder found in The Application home directory on the iPhone - so I can build them in at build time? Or do I need to put them in as a resource, and then have my app copy them to the Cache on start?


You'll need to copy them from your app bundle to the caches on first run startup.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜