参考文章:loadView、viewDidLoad及viewDidUnload的关系
Apple API :
// This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.
使用点语法(self.view or vc.view)并且 view 为nil时,会自动调用 loadView 方法。重写loadView方法,可以继续对View进行配置。
1.当使用 xib 创建界面时,其中[superloadView]的作用是加载xib来创建View。
2.当使用代码创建界面时,其中[super loadView]的作用是创建一个空白View。