页面跳转的方式:
- [self presentViewController:firstSubVC animated:YES completion:^{
- NSLog(@"present first sub VC ok");
- }];
- [self dismissViewControllerAnimated:YES completion:^{
- NSLog(@"Back to previous OK");
- }];
第一种:
跳转:[self presentModalViewController:control animated:YES];
返回:[self dismissModalViewControllerAnimated:YES];
第二种:
跳转:[self.navigationController pushViewController:subTableViewController animated:YES];
返回:[self.navigationController popViewControllerAnimated:YES];
//根据 segue Identifier跳转界面
[self performSegueWithIdentifier:@"GotoTwo" sender:self];
自己控制:
[self.view insertSubview:redview.view atIndex:0];
[self.view addSubview: (UIView *)]
这两种都使用这种方式返回[self.view removeFromSuperview];
2 顺序浏览
[UIStoryboard *board=[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
[self.navigationController pushViewController: [board instantiateViewControllerWithIdentifier:@"LoginView" ]