2

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?

Community
  • 1
  • 1
Earl Grey
  • 7,426
  • 6
  • 39
  • 59

1 Answers1

1

This is à duplicate of iPhone - Get Position of UIView within entire UIWindow

Just use:

[aView convertPoint:localPosition toView:nil];

Community
  • 1
  • 1
Luc Wollants
  • 880
  • 9
  • 27