Load image from bundle with iOS

MatterGoal picture MatterGoal · Apr 14, 2011 · Viewed 83.2k times · Source

I added to my project a .bundle folder filled with some images. Is it correct refer to this image directly writing something like ?:

[UIImage imageNamed:@"imageInBundle.png"];

Which is the best method to access and use these images ?

Answer

Ignacio Pascual picture Ignacio Pascual · Oct 24, 2012

If that does not work, try

[UIImage imageNamed:@"yourbundlefile.bundle/imageInBundle.png"];

Best