viewViewDidLoadand viewWillAppearare part of the life cycle of the view controller and are automatically called by iOS after your instance has UIViewControllerreceived an instance and appears on the screen before the view. You can call them anywhere in your class controller class, but this is not a good practice, and I would never recommend that you do this!
, , viewDidLoad , .
Apple .