跳转到storyboard控制器代码

- (IBAction)loginAction:(id)sender {
    
    UIStoryboard *main=[UIStoryboard storyboardWithName:@"Main" bundle:nil];//storyboard标示
    
    RegisterViewController *vc=[main instantiateViewControllerWithIdentifier:@"RegisterConroller"];//控制器标示
    [self.navigationController pushViewController:vc animated:YES];
    

}

你可能感兴趣的:(控制器)