【发布时间】:2010-12-29 02:08:06
【问题描述】:
我只想获取视图左上角的 x,y 坐标,我该怎么做? 谢谢!
【问题讨论】:
标签: iphone objective-c cocoa-touch
我只想获取视图左上角的 x,y 坐标,我该怎么做? 谢谢!
【问题讨论】:
标签: iphone objective-c cocoa-touch
CGPoint topLeft = theView.frame.origin;
【讨论】:
这是左下角--->CGPoint topLeft = theView.frame.origin;
左上角是:
CGPoint topLeft = theView.frame.origin+theView.frame.height;
【讨论】: