M mguniverse macrumors newbie Original poster Jan 24, 2010 7 0 Jan 24, 2010 #1 Figured it out. Last edited: Sep 5, 2011
dejo Moderator emeritus Sep 2, 2004 15,982 452 The Centennial State Jan 24, 2010 #2 Look into using NSUserDefaults for this kind of data persistence.
M mguniverse macrumors newbie Original poster Jan 24, 2010 7 0 Jan 24, 2010 #3 dejo said: Look into using NSUserDefaults for this kind of data persistence. Click to expand... But how do I implement that with image views?
dejo said: Look into using NSUserDefaults for this kind of data persistence. Click to expand... But how do I implement that with image views?
dejo Moderator emeritus Sep 2, 2004 15,982 452 The Centennial State Jan 24, 2010 #4 mguniverse said: But how do I implement that with image views? Click to expand... UIImageView conforms to NSCoding.
mguniverse said: But how do I implement that with image views? Click to expand... UIImageView conforms to NSCoding.
drf1229 macrumors regular Jun 22, 2009 237 0 Jan 24, 2010 #5 Try converting the image to NSData, then write the data to a file.
M mguniverse macrumors newbie Original poster Jan 24, 2010 7 0 Jan 24, 2010 #6 drf1229 said: Try converting the image to NSData, then write the data to a file. Click to expand... How do I go about doing that?
drf1229 said: Try converting the image to NSData, then write the data to a file. Click to expand... How do I go about doing that?
drf1229 macrumors regular Jun 22, 2009 237 0 Jan 25, 2010 #7 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.
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.