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

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -