阅读背景:

解决Objective-C名称空间冲突的最佳方法是什么?

来源:互联网 

Objective-C has no namespaces; it's much like C, everything is within one global namespace. Common practice is to prefix classes with initials, e.g. if you are working at IBM, you could prefix them with "IBM"; if you work for Microsoft, you could use "MS"; and so on. Sometimes the initials refer to the project, e.g. Adium prefixes classes with "AI" (as there is no company behind it of that you could take the initials). Apple prefixes classes with NS and says this prefix is reserved for Apple only.Objective-C has no namespaces; it's much like C




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: