总结
CGRect
is the CoreGraphics equivalent ofNSRect
.They are deliberately made to have the same layout in memory. As such,it is allowed to convert an
NSRect
to aCGRect
by doing this:06000
CoreGraphics also provIDes a
CGRectMake()
function which works the same asNSMakeRect()
(note the reversal of verb and object in the names) except it returns aCGRect
.
以上是内存溢出为你收集整理的objective-c – CGRect和NSRect之间有什么不同吗?全部内容,希望文章能够帮你解决objective-c – CGRect和NSRect之间有什么不同吗?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)