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

  # define kCustomProperty @ "CustomProperty"   

Add your object with a kind of down that custom properties

  objc_setAssociatedObject (myObj, kCustomProperty, MyData, OBJC_ASSOCIATION_RETAIN_NONATOMIC) ;   

Get your data using the same property and the object like

  NSObject * aObj = objc_getAssociatedObject (myObj, kCustomProperty);   

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.

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -