views:

113

answers:

1

Hi all,

I'm my application I want to pass an UIImageView to NSDictionary. Can anybody please help. It's urgent. Thanks in advance.

+1  A: 

This:

NSDictionary *aDict=[NSDictionary dictionaryWithObject:anImageInstance forKey:@"imageKey"];

... will work. Dictionaries are designed precisely to hold objects. They will hold any object without any fuss.

TechZen
Thanks TechZen... It helped!
neha