How can I store a UIImage in an NSDictionary?
+1
A:
[dictionary setObject:yourImage forKey:@"whatever key you want"];
Untested ;-)
MrMage
2010-02-02 17:42:04
+2
A:
Yes you can:
NSMutableDictionary *dict = [NSMutableDictionary dictionaryWithCapacity:1];
UIImage *img = ...;
[dict setObject:img forKey:@"aKeyForYourImage"];
UIImage *imgAgain = [dict objectForKey:@"aKeyForYourImage"];
Felix
2010-02-02 17:42:31