[self presentModalViewController:self.set animated:YES];
self 不会调用dealloc自我销毁。
self.set 只会再第一次出现时调用ViewDidLoad加载,之后再执行该函数时只会调用:(void)viewWillAppear:(BOOL)animated;
[self dismissModalViewControllerAnimated:YES];
self 会调用dealloc
self之下的一个Controller会调用(void)viewWillAppear:(BOOL)animated;
- (void)pushViewController:(UIViewController *)viewController animated:
上层的ViewController会调用viewdidload。,
- (UIViewController *)popViewControllerAnimated:(BOOL)animated;
上层的ViewController会调用dealloc