FeedbackViewController *feedbackViewController = [[FeedbackViewController alloc]initWithNibName:@"FeedbackViewController" bundle:nil];
UINavigationController *navigationController = [[UINavigationController alloc]initWithRootViewController:feedbackViewController];
[self presentModalViewController:navigationController animated:YES];
[self dismissModalViewControllerAnimated:YES];
2012-12-27 14:01:23.666 WTV[1627:11303] -More--viewWillDisappear----
2012-12-27 14:01:23.672 WTV[1627:11303] -Feed--viewWillAppear----
2012-12-27 14:01:24.086 WTV[1627:11303] -Feed--viewDidAppear----
2012-12-27 14:01:24.087 WTV[1627:11303] -More--viewDidDisappear----
2012-12-27 14:01:25.745 WTV[1627:11303] -Feed--viewWillDisappear----
2012-12-27 14:01:25.745 WTV[1627:11303] -More--viewWillAppear----
2012-12-27 14:01:26.156 WTV[1627:11303] -More--viewDidAppear----
2012-12-27 14:01:26.157 WTV[1627:11303] -Feed--viewDidDisappear----
- (void)presentModalViewController:(UIViewController *)modalViewController animated:(BOOL)animated;
- (void)dismissModalViewControllerAnimated:(BOOL)animated;
[self presentViewController:navigationController
animated:YES
completion:^(void){
// Code
}];
[self dismissViewControllerAnimated:YES
completion:^(void){
// Code
}];
presentModalViewController和dismissModalViewControllerAnimated的替代方法
原文:http://www.cnblogs.com/sjcries/p/5399420.html