Retrieving image from Documents Directory

Nov 4, 2011
Reaction score
Hey guys,
I am struggling abit with getting images from my documents directory. I am trying to use imageWithContentsOfFile to get the image that was saved in my first view to load in my second view. Does anybody have or know a good tutorial on how I can correctly use imageWithContentsOfFile to load my image up in my second view?

Ps. When the second view loads it should set the image that is stored in my documents directory as the views background. I can easy set the background color programmatically in view did load but having some troubles setting it as an image.

Thank you,

Shop Amazon

Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.