I’ve been scratching my freaking head for an hour trying to figure out how to load an image from my application’s bundle. ┬áDoing this in Interface Builder is easy as pie, but not so straightforward.

[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@”thefilename” ofType:@”jpg”]];

Easy, isn’t it?