ios awakeFromNib 和 initWithCoder:
2015-07-16 10:23
465 查看
During the instantiation process, each object in the archive is unarchived and then initialized with the method befitting its type. Objects that conform to the
NSCodingprotocol (including all subclasses of
UIViewand
UIViewController) are initialized using their
initWithCoder:method. All objects that do not conform to the
NSCodingprotocol are initialized using their
initmethod. After all objects have been instantiated and initialized, the nib-loading code reestablishes the outlet and action connections for all of those objects. It then calls the
awakeFromNibmethod of the objects. For more detailed information about the steps followed during the nib-loading process, see Nib Files in Resource Programming Guide.
相关文章推荐
- IOS内购支付服务器验证模式
- <转>如何在iOS 7中设置barTintColor实现类似网易和 Facebook 的 navigationBar 效果
- iOS学习笔记-retain/assign/strong/weak/copy/mutablecopy/autorelease区别
- [iOS] 初探 iOS8 中的 Size Class
- IOS:Camera的特性分析与使用2_AVCapture
- 【金阳光测试独家播出】-IOS专项测试体系预告-7.20号更新第一集
- iOS学习笔记-ViewController/生命周期
- IOS官方Demo
- iOS开发编程英语(单词带音标)
- iOS-正则表达式
- iOS Framework制作
- 在iOS中创建多线程都有哪些方法?
- iOS跳转到另一个程序
- ios 屏幕方向控制
- 问题记录:iOS 用户行为统计代码的剥离
- iOS中实现视图的拖动
- IOS:Camera的特性分析与使用
- IOS中Block用法介绍
- 自己的自定义单元格(IOS)
- 【第一步】iOS开发环境搭建