apple保留两个字母的前缀,建议用三个字母做前缀
2017-05-09 14:34
288 查看
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建议用三个字母做前缀
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.
- (三十)储存两个或者两个以上的字母/汉字
- Js中两个等号(==)和三个等号(===)的区别
- [YTU]_1985( C语言实验——保留字母)
- js判断输入字符串长度(汉字算两个字符,字母数字算一个)
- 两个jre"和"三个lib"的功能简单扼要的解释
- JavaScript中三个等号和两个等号的区别(== 和 ===)浅析
- 使用main函数的参数,实现一个整数计算器,程序可以接受三个参数,第一个参数“-a”选项执行加法,“-s”选项执行减法,“-m”选项执行乘法,“-d”选项执行除法,后面两个参数为操作数。
- Vertica 数据库的保留字(词)列表。建议收藏开发时方便查找
- android用shape给linearLayout设置边框,怎样只保留底部或顶部的边框,把其它三个方向的边框去掉呢?
- 【小知识点总结】java中两个整数相除得到小数点并保留两位小数的方法
- DTO或Form中的属性命名时,属性名称的前两个字母必须小写
- Tomcat的三个端口(一个电脑同时启动两个tomcat)
- 给定两个整数 l 和 r ,对于所有满足1 ≤ l ≤ x ≤ r ≤ 10^9 的 x ,把 x 的所有约数全部写下来。对于每个写下来的数,只保留最高位的那个数码。求1~9每个数码出现的次数。
- 截取字符串,汉字占两个字节,字母占一个字节
- js ==与===区别(两个等号与三个等号)
- 有三个数字,两个相同,输出那个不同的【不喜勿喷】
- 两个Transformed-前缀的mathematica函数
- 输入三个数,用条件表达式,不能用if语句,判断是不是两个奇数一个偶数,是就输出Y,不是就输出N。