Reputation: 51978
I just want to get the x,y coordinate of the top left corner of a view, how might I do this? Thanks!
Upvotes: 9
Views: 3708
Reputation: 1
this is bottom left ---> CGPoint topLeft = theView.frame.origin;
top left is:
CGPoint topLeft = theView.frame.origin+theView.frame.height;
Upvotes: -1