save UIImage to NSUserDefaults
I am new to iphone programming. In my application, I really need to save an UIImage to NSUserDefaults, so next time user launch the app, the same image will be loaded. But I found I cound not save UIImage to NSUserDefaults. What is the work around?
2008-09-27 11:03:14.491 Js[4947:20b] * -[NSUserDefaults setObject:forKey:]: Attempt to insert non-property value '<UIImage: 0x45a220>' of class 'UIImage'.
Thank you very much.
fm
Mac mini, Mac OS X (10.5.4)