Skip to content

Instantly share code, notes, and snippets.

@michaelbiggs
Created March 11, 2013 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelbiggs/5134795 to your computer and use it in GitHub Desktop.
Save michaelbiggs/5134795 to your computer and use it in GitHub Desktop.
translate CGPoint (or CGRect) from super view to other view
[<UIView* otherView> convertPoint: <CGPoint pointToTranslate> fromView: <UIView* pointSuperview>]
or
[<UIView* otherView> convertRect: <CGRect rectToTranslate> fromView: <UIView* rectSuperview> ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment