标签:
@property(nonatomic,retain) UIView *view; // The getter first invokes [self loadView] if the view hasn‘t been set yet. Subclasses must call super if they override the setter or getter.
如果没有生成view,那么self.view会先调用[self loadView],然后。。。
(void)viewDidLoad; // Called after the view has been loaded. For view controllers created in code, this is after -loadView. For view controllers unarchived from a nib, this is after the view is set.
总结,self.view->[self loadView]->[self viewDidLoad]。
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:
原文地址:http://blog.csdn.net/winsdom123456/article/details/47976329