iPhone:如何获取UIView的左上角坐标?
我只想得到视图左上角的x,y坐标,我该怎么做? 谢谢 这是左下--->iPhone:如何获取UIView的左上角坐标?,iphone,objective-c,cocoa-touch,Iphone,Objective C,Cocoa Touch,我只想得到视图左上角的x,y坐标,我该怎么做? 谢谢 这是左下--->CGPoint topfleft=theView.frame.origin 左上角是: CGPoint topfleft=theView.frame.origin+theView.frame.height知道如何获取visibleMapRect的角坐标吗?@Jonathan Grynspan self.frame.SKScene的原点位于左下角。 CGPoint topLeft = theView.frame.origin;
CGPoint topfleft=theView.frame.origin代码>
左上角是:
CGPoint topfleft=theView.frame.origin+theView.frame.height代码>知道如何获取visibleMapRect的角坐标吗?@Jonathan Grynspan self.frame.SKScene的原点位于左下角。
CGPoint topLeft = theView.frame.origin;