首先看一下官方解释: - (void)loadView; // This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly. - (void)viewDidUnload NS_DEPRECATED_IOS(3_0,6_0); // Called after the view controller's vi…
loadView; This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.这是当他们没有正在使用nib视图页面,子类将会创建自己的自定义视图层.绝不能直接调用.viewDidLoad;Called after the view has been loaded. For view controller…
loadView; This is where subclasses should create their custom view hierarchy if they aren't using a nib. Should never be called directly.这是当他们没有正在使用nib视图页面,子类将会创建自己的自定义视图层.绝不能直接调用. ------------viewDidLoad;Called after the view has been loaded. For vi…
<欢迎大家加入iOS开发学习交流群:QQ529560119> /* UIViewController is a generic controller base class that manages a view. It has methods that are called when a view appears or disappears. Subclasses can override -loadView to create their cust…
Responding to Display-Related Notifications 响应跟显示相关的通知 When the visibility of a view controller’s view changes, the view controller calls some built-in methods to notify subclasses of the changes. You can override these methods to override how your s…
UIViewController 在MVC模式中就是C.关于MVC,可以看 UIViewController 主要具有什么功能呢? View Management When you define a new subclass of UIViewController, you must specify the views to be managed by the controller. A typical view hierarchy consists of a view with flexibl…