开发者

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

开发者 https://www.devze.com 2023-01-06 00:45 出处:网络
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

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

精彩评论

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