My objects' hierarchy is as follows,
Let's say the UIButton's object name is 'myButton'.
Now, Is there any way to Calculate the origin(X Coordinate,Y Coordinate) of 'myButton' directly from self.view not by using any intermediate objects' frames?
Any comments or suggestions would be appreciated.
Thank you in advance.
for UIView
- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;
- (CGPoint)convertPoint:(CGPoint)point fromView:(UIView *)view;
CGPoint pt = [button converPoint:button.bound.origin toView:self.view];