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

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -