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 ?
If that does not work, try
[UIImage imageNamed:@"yourbundlefile.bundle/imageInBundle.png"];
Best
That is correct, imageNamed:
will search your main bundle. Images in your project, even if they are in different groups in your Project Navigator will be in your main bundle and can be accessed directly by name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With