Ajayvictor007
Ajayvictor007

Reputation: 327

how can i add a new property to an object

i have a custom imageView and i want to add a new prooerty "symbol" to it,so that i can identify every object of my custom imageView.So how can i add a new property to it?Should i go for tag?but i have many objects,so i have to set many tags.

Please help......

Upvotes: 0

Views: 84

Answers (1)

Cesar
Cesar

Reputation: 4427

The proper way to do it is to create a class that extend UIImageView, add a your variable, add the property and synthesize it.
Then if you are working with IB just change the class of you object, once added.

Upvotes: 2

Related Questions