一,进入视图中,方法执行顺序依次为:
1.- (void)loadView;
2.- (void)viewDidLoad;
3.- (void)viewWillAppear:(BOOL)animated;
4.- (void)viewDidLayoutSubviews;
5.- (void)viewDidAppear:(BOOL)animated;
二,离开视图时,方法执行顺序为:
1.- (void)viewWillDisappear:(BOOL)animated;
2.- (void)viewDidDisappear:(BOOL)animated;