iPhone:如何获得UIView的左上角坐标?

for*_*yez 2 iphone cocoa-touch objective-c

我只想获得视图左上角的x,y坐标,我该怎么做?谢谢!

Jon*_*pan 7

CGPoint topLeft = theView.frame.origin;
Run Code Online (Sandbox Code Playgroud)