Separate names with a comma.
Discussion in 'iOS Programming' started by mguniverse, Jan 24, 2010.
Figured it out.
Look into using NSUserDefaults for this kind of data persistence.
But how do I implement that with image views?
UIImageView conforms to NSCoding.
Try converting the image to NSData, then write the data to a file.
How do I go about doing that?
Well to convert an image into NSData you can use UIImageJPEGRepresentation or UIImagePNGRepresentation. Then use one of NSData's methods to write it to a file.