alloc -> initWithNibName -> loadView -> viewDidLoad -> viewWillAppear -> viewDidAppear -> viewWillDisappear -> viewDidDisappear -> dealloc 註意,不要在loadV ...
alloc -> initWithNibName -> loadView -> viewDidLoad -> viewWillAppear -> viewDidAppear -> viewWillDisappear -> viewDidDisappear -> dealloc
註意,不要在loadView中調用父類方法[super loadView],因為這會影響CPU性能。
註意2,切換前後臺不會調用viewWillAppear