为什么Objective-C中有很多类是以NS、UI开头的
来源:互联网 发布:恋爱软件免费版 编辑:程序博客网 时间:2024/05/23 01:14
在阅读苹果的官方文档的时候看到的解释:
Historical Note: If you’re wondering why so many of the classes you encounter have anNS prefix, it’s because of the past history of Cocoa and Cocoa Touch. Cocoa began life as the collected frameworks used to build apps for the NeXTStep operating system. When Apple purchased NeXT back in 1996, much of NeXTStep was incorporated into OS X, including the existing class names. Cocoa Touch was introduced as the iOS equivalent of Cocoa; some classes are available in both Cocoa and Cocoa Touch, though there are also a large number of classes unique to each platform.
Two-letter prefixes like NS and UI (for User Interface elements on iOS) are reserved for use by Apple.
0 0
- 为什么Objective-C中有很多类是以NS、UI开头的
- ns ui开头的类的含义
- ios开发中,经常使用不同的大写字母开头类,如UI、CG、NS..主要有什么区别和意义了?
- OC中NS开头的来源
- 判断地址url是以http://开头的
- 判断文本框中填写的是字母、数字、下划线,且是以字母开头
- 批量修改,删除数据库中 表名是以特定字符开头的表!
- [Objective-C] 为什么Objective-C不支持类的私有方法
- c++为什么有很多的初始化方法?
- Cocoa Touch的类名为什么是以两个大写字母开头的?
- Cocoa Touch的类名为何是以两个大写字母开头的
- android 基本类型的引用如果是以大写开头的就是引用一个类
- 有很多10或100开头的IP在频繁访问ECS的原因
- objective-c中@property的参数分别有何作用?
- Objective-C 和 C++ 的区别有哪些?为什么苹果会选择前者?
- post 相比get 有很多优点,为什么现在的HTTP通信中大多数请求还是使用get?
- post 相比get 有很多优点,为什么现在的HTTP通信中大多数请求还是使用get?
- post 相比get 有很多优点,为什么现在的HTTP通信中大多数请求还是使用get?
- 采用不同方式进行数值交换
- 直方图匹配
- Linux下Wi-Fi的实现:wireless_tools和wpa_supplicant
- HDU1251——统计难题(字典树模板)
- 解决编译Apache出现的问题:configure: error: APR not found . Please read the documentation
- 为什么Objective-C中有很多类是以NS、UI开头的
- DNS 开源DNS之dnspod-sr介绍
- declare-styleable中format详解
- AFNetWorking(持续更新)
- hdu 1055 color on a tree
- iwpriv 配置STA连接选项命令
- Linux学习笔记(三)
- java动态代理
- css3相关