Possible Duplicate:
iPhone - Get Position of UIView within entire UIWindow
Is there a built in method to do this? Or do I have to jump through all the superviews, sum all the Y origins until I reach mainWindow?
Possible Duplicate:
iPhone - Get Position of UIView within entire UIWindow
Is there a built in method to do this? Or do I have to jump through all the superviews, sum all the Y origins until I reach mainWindow?
This is à duplicate of iPhone - Get Position of UIView within entire UIWindow
Just use:
[aView convertPoint:localPosition toView:nil];