I\'m new to iPhone development and I have a question that may have a very simple answer. I am trying to add buttons to a view and these buttons are associated with a custom clas
From Apple docs:
The key is copied (using copyWithZone:; keys must conform to the NSCopying protocol).
UIButton does not conform to the NSCopying protocol and so you cannot use it as a key in NSDictionary