The UIView class has several methods for converting CGPoints or CGR coordinates from one view to another. Take a look at convertPoint: toView :, convertPoint: fromView :, etc in the UIView class reference.
You can convert coordinates from one view to another or from any view to a window or vice versa.
source
share