IOS 跳转页面

1. 跳转界面,关闭自身

 

LoginViewController *loginViewController = [[LoginViewController alloc]initWithNibName:@"LoginViewController" bundle:nil];

    [self presentViewController:loginViewController animated:YES completion:^{

    } ];

 

ios6以前是presentModalViewController;

 

2. 关闭当前视图

 

 [self dismissViewControllerAnimated:YES completion:nil];

ios6以前是dismissModalViewController

posted @ 2016-01-27 11:38  预见者  阅读(147)  评论(0编辑  收藏  举报