I’m able to pull information from a plist using:
nameTextField.text = [recipe objectForKey:NAME_KEY];
ingredientsText.text = [ingredients objectForKey:NAME_KEY];
I also have images in the plist [the names of the images, not the image data]
does anyone know how i would display an image in a similar manner?
thanks in advance.
You’ll have to create an image with the contents of the file at the stored path. Either use
imageWithContentsOfFile:orimageNamed:, whereimageNamed:takes only the filename and caches images, useful for images that are small and appear often in the UI. Also note, thatimageNamed:searches for a @2x-Version of the image in iOS4.imageWithContentsOfFiletakes a full path including your app-bundle’s path and dose not have a cache. It’s intended for larger images that only appear once on a screen.