I was wondering how to grab an instance of a UIButton without interacting with it. I have placed a button in my xib, and just want to be able to get it’s position in code. I have created an IBOutlet and linked them up, but when I look at the position of the IBOutlet it is set to 0,0.
Any help is much appreciated.
Kind Regards,
Elliott
you have to set
tagproperty of that but button, say 1001, and for example inviewDidLoadmethod you can get that button by :Hope it helps you…