PDA

View Full Version : How to add new custom property to UITextField?




sspbond007
Apr 17, 2009, 04:09 AM
Hi

Is there any way to add new custom property to UITextField, like we do add custom methods using category?

Thanks..



robbieduncan
Apr 17, 2009, 04:20 AM
I think you'd have to subclass it to add a new property...

mccannmarc
Apr 17, 2009, 04:59 AM
Yeah definately a subclass, you can't add properties using categories as I found out just the other day

sspbond007
Apr 17, 2009, 05:07 AM
Thanks