ios - how to get coordinates of button with respect to superview? -
my view hierarchy
uiviewcontroller.view
a subview (on main view half size , in bottom)
a button on subview
i want co-ordinates of button respect main view
the cgrect of button according superview.
[self.view convertrect:button.frame fromview:button.superview];
Comments
Post a Comment