ios - Uniquely identify two diffrent views -
I have two buttons / the same name, the same tag and the same event when pressed any buttons With the main focus was seen keeping. Again, what button is to be separated?
Please do not suggest to change the name of the name or button, because your application is changing by the hard working name or tag in the whole application so large.
Is there any other way to separate two buttons / views?
Define your custom properties like this Add your object with a kind of down that custom properties Get your data using the same property and the object like A type of its custom property can make you want to coding the tag you do not want to use or change the name of the scene.
# define kCustomProperty @ "CustomProperty"
objc_setAssociatedObject (myObj, kCustomProperty, MyData, OBJC_ASSOCIATION_RETAIN_NONATOMIC) ;
NSObject * aObj = objc_getAssociatedObject (myObj, kCustomProperty);
Comments
Post a Comment