开发者

Managing resources and keeping them out of version control

My iPhone app will have a map with about开发者_高级运维 10 points on it. It will play sound files based on the proximity to those points.

What's the best way of managing these resources?

  • Coordinates and accompanying sound file could be stored in a plist, as an array of dicts with latitude, longitude and file name. Then the sound files could be stored separately.
  • The plist and sound files should not be version controlled.
  • How much, and what, should happen compile-time, and run-time? How do I manage this?

The end result should be an app binary with the sound files embedded and the records stored in core data. Doing stuff on first launch of app is also OK.

I think my question could be rephrased to: how do I manage resources programatically, at build time?


Add the sounds folder as a 'folder reference'. Then any files you add to that folder will be included in your bundle. Right click on your project->Add Existing Files then choose 'Create Folder References'

Managing resources and keeping them out of version control

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜