码迷,mamicode.com
首页 > 移动开发 > 详细

ios awakeFromNib 和 initWithCoder:

时间:2015-07-16 11:28:18      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:

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 NSCoding protocol (including all subclasses of UIViewand UIViewController) are initialized using their initWithCoder: method. All objects that do not conform to the NSCoding protocol are initialized using their init method. 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 awakeFromNib method of the objects. For more detailed information about the steps followed during the nib-loading process, see Nib Files in Resource Programming Guide.

ios awakeFromNib 和 initWithCoder:

标签:

原文地址:http://www.cnblogs.com/breezemist/p/4650455.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!