loadView VS viewDidLoad

来源:互联网 发布:彩票的算法 编辑:程序博客网 时间:2024/05/15 01:55

loadView is the method in UIViewController that will actually load up the view and assign it to the "view" property. This is also the location that a subclass of UIViewController would override if you wanted to programatically set up the "view" property.

viewDidLoad is the method that is called once the view has been loaded. This is called after loadView is called. It is a place where you can override and insert code that does further initial setup of the view once it has been loaded.

0 0