开发者

Resource bundles in iPhone

开发者 https://www.devze.com 2023-01-20 15:03 出处:网络
How do I create a resource bundle to use in an iPhone/iPad app? Is it simply a folder with the .bundle extension or do I have to do something els开发者_Python百科e to make it work?

How do I create a resource bundle to use in an iPhone/iPad app? Is it simply a folder with the .bundle extension or do I have to do something els开发者_Python百科e to make it work?

Are there any special considerations for Universal apps (ie: do I have to create separate bundles for each platform?) and localized resources?

I would like to create and use a resource bundle similar to the one that Facebook Connect iPhone SDK has.


File Menu => New => New File... => Resources = Settings bundle...

Name it anything you want, for example "MyBundle".

From Finder, open contents and drag any folder of images or whatever.

Access by...

[UIImage imageNamed:@"MyBundle.bundle/images/logout.png"];
0

精彩评论

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