Possible Duplicate:
Subclass UIButton to add a property
I’m trying to find a way to extend UIButton so that it can have a property like
@property(assign, nonatomic) id userInfos;
without subclassing it…
Is this possible?
the button.tag is not enough in my situation…
Okay as always a better answer is available here
This is very easy using Objective-C associated objects:
In your header:
In your implementation file:
That’s it!