apple保留两个字母的前缀,建议用三个字母做前缀
2014-03-13 09:40
309 查看
In order to keep class names unique, the convention is to use prefixes on all classes. You’ll have noticed that Cocoa and Cocoa Touch class
names typically start either with
Two-letter prefixes like these are reserved by Apple for use in framework classes. As you learn more about Cocoa and Cocoa Touch, you’ll encounter a variety of other prefixes that relate to specific frameworks...
Your own classes should use three letter prefixes. These might relate to a combination of your company name and your app name, or even a specific component within your app. As an example, if your company were called Whispering Oak, and you were developing a
game called Zebra Surprise, you might choose
apple建议用三个字母做前缀
names typically start either with
NSor
UI.
Two-letter prefixes like these are reserved by Apple for use in framework classes. As you learn more about Cocoa and Cocoa Touch, you’ll encounter a variety of other prefixes that relate to specific frameworks...
Your own classes should use three letter prefixes. These might relate to a combination of your company name and your app name, or even a specific component within your app. As an example, if your company were called Whispering Oak, and you were developing a
game called Zebra Surprise, you might choose
WZSor
WOZas your class prefix.
apple建议用三个字母做前缀
相关文章推荐
- apple保留两个字母的前缀,建议用三个字母做前缀
- 网新恒天笔试题,有两个整形数组A和B,请编程去除这两个数组间的交集。若有相同元素,则在相同元素较多的数组中保留它。例如,数组A有三个1,数组B有两个1,程序将删除数组B中的两个1.
- 建议:开放graphics.pas的FileFormats/ClipboardFormats两个全局变量到interface
- 【叶子函数分享十一】取汉字首字母的两个函数
- 让你的 Linux 服务器安全的两个建议
- 如何用 Git 合并两个库,并保留提交历史
- 给智能手机和平板用户新手的三个建议
- 每天三道冲刺工作--有两个房间,一间房里有三盏灯,另一间房有控制着三盏灯的三个开关
- javaScript中两个等于号和三个等于号之间的区别
- C# 过滤特殊字符,保留中文,字母,数字,和-
- js ==与===区别(两个等号与三个等号)
- 两个整形相除保留两位小数
- 设计一个算法将两个字符串合并按字母排序
- 写两个线程,一个线程打印 1~52,另一个线程打印字母A-Z。打印顺序为12A34B56C……5152Z
- mongo三个索引字段复合索引的索引前缀Prefixes
- mongo三个索引字段复合索引的索引前缀Prefixes
- 提两个建议
- DTO或Form中的属性命名时,属性名称的前两个字母必须小写
- hpuoj【1054】保留字母 [水题]
- 关于js中“两个等号”和“三个等号”