I have an array of NSString
s:
Flower
Car
Tree
Cat
Shoe
Some of these strings have images associated with them; some don't. I can build an image name by appending .png
to the name (e.g. Flower.png
).
How do I check whether that image actually exists within the bundle before I try to load it into the view?