I have this problem… I need to load an image from the resources of my app that is called for example mystuff01.jpg but maybe be called mystuff01.gif or png, now, what’s the best solution to do this?
In my mind there’s a cycle to retrieve if the file exists and if exists load it…
there’s a better solution?
thanks
I have this problem… I need to load an image from the resources of
Share
I think one of the solutions is to create an NSArray {@”.jpg”, @”.png” }, loop through the array and add the extension to the file name, then check if the file name + extension exists, then you load it. It will be easier to do, and can be done with loop