Guest User

Untitled

a guest
Aug 15th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. Co-ordinates of the four points of a uiview which has been rotated
  2. CGPoint topLeft = view.bounds.origin;
  3. topLeft = [[view superview] convertPoint:topLeft fromView:view];
  4.  
  5. CGPoint topRight = CGPointMake(view.bounds.origin.x + view.bounds.width, view.bounds.origin.y);
  6. topRight = [[view superview] convertPoint:topRight fromView:view];
  7.  
  8. // ... likewise for the other points
Add Comment
Please, Sign In to add comment