Search code examples
objective-cxcode4ios4uibutton

How to give an external property to UIButton


I am new in iOS development. Now I want to give an external property(similar to tag) to a UIButton. Is it is possible? If it is possible ,how to do this?

If any body know, please help me.


Solution

  • You can use a NSArray, and the index of the array is the UIButton's tag.