IOS开发中页面跳转的几种方式

来源:互联网 发布:手机wifi网络测速 编辑:程序博客网 时间:2024/04/27 13:52
 //根据 segue Identifier跳转界面
    [self performSegueWithIdentifier:@"GotoTwo" sender:self];
    
   //以modal 方式跳转
    [self presentModalViewController:nil animated:YES];
    
   //压进一个viewcontroller
    [self.navigationController pushViewController:nil animated:YES];


   //弹出一个viewcontroller  相当与返回上一个界面
    [self.navigationController popViewControllerAnimated:YES];
    
   // 以 modal跳转的返回方法
    [self dismissModalViewControllerAnimated:YES];
0 0
原创粉丝点击