设置segue跳转页面

第二种是利用ViewController与ViewController之间,拖拽添加segue

方法中提到的设置segue的identifier界面

在.h文件中声明
- (IBAction)gotoSecondView:(id)sender 
在.m文件中定义
- (IBAction)gotoSecondView:(id)sender {
    
     [self performSegueWithIdentifier:@"secondview" sender:self];   
}

  

参考:http://blog.csdn.net/mad1989/article/details/7919504

原文地址:https://www.cnblogs.com/coolyylu/p/4933447.html