views:

66

answers:

1

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 else 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.

A: 

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"];
Jordan
Feels kinda hacky, especially the imageNamed: part with whatevername.bundle.
DarkDust
Not sure what you mean, that's how imageNamed: works.
Jordan