可可 – CGGeometry,CGPoint,CGRect中的“CG”代表什么?

可可 – CGGeometry,CGPoint,CGRect中的“CG”代表什么?,第1张

概述在Cocoa和Cocoa Touch API中,缩写“CG”的含义是什么,它在许多与CGPoint和CGRect相关的图形相关类中使用? 它基于 Apple’s API Naming Guidelines。 You should try to choose names that clearly associate each symbol with your framework. For examp 在Cocoa和Cocoa touch API中,缩写“CG”的含义是什么,它在许多与CGPoint和CGRect相关的图形相关类中使用?解决方法 它基于 Apple’s API Naming Guidelines。

You should try to choose names that clearly associate each symbol with your framework. For example,consIDer adding a short prefix to all external symbol names. Prefixes help differentiate the symbols in your framework from those in other frameworks and librarIEs. They also make it clear to other developers which framework is being used. Typical prefixes include the first couple of letters or an acronym of your framework name. For example,functions in the Core Graphics framework use the prefix “CG”.

总结

以上是内存溢出为你收集整理的可可 – CGGeometry,CGPoint,CGRect中的“CG”代表什么?全部内容,希望文章能够帮你解决可可 – CGGeometry,CGPoint,CGRect中的“CG”代表什么?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1038056.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-24
下一篇2022-05-24

发表评论

登录后才能评论

评论列表(0条)

    保存