Two objective-c methods, -(void) viewDidLoad and -(void)loadView are methods called upon execution of a program but whats the different between them?
Two objective-c methods, -(void) viewDidLoad and -(void)loadView are methods called upon execution of a
Share
Do you mean
viewDidLoadandloadView?viewDidLoadis a method called when your view has been fully loaded. That means all your IBOutlets are connected and you can make changes to labels, text fields, etc.loadViewis a method called if you’re (typically) not loading from a nib. You can use this method to set up your view controller’s view completely in code and avoid interface builder altogether.You’ll typically want to avoid
loadViewand stick toviewDidLoad.