apple保留两个字母的前缀,建议用三个字母做前缀

Posted u010850094

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apple保留两个字母的前缀,建议用三个字母做前缀相关的知识,希望对你有一定的参考价值。

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 NS or 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 WZS or WOZ as your class prefix.


apple建议用三个字母做前缀

以上是关于apple保留两个字母的前缀,建议用三个字母做前缀的主要内容,如果未能解决你的问题,请参考以下文章

BZOJ 4236 JOIOJI(前缀和)

14. 最长公共前缀

Educational 112 1555. D. Say No to Palindromes(前缀和)

比较两个字母数字房间号码以确定楼层前缀

LeetCode 面试题 17.05 字母与数字前缀和 MapHERODING的LeetCode之路

正则表达式匹配非零前缀数字 *OR* 字母数字