iOS--代码关联storyboard

三行代码就可以简单地实现代码关联storyboard


UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MyViewController" bundle:nil];
    
    MyViewController* aVC = [storyboard instantiateViewControllerWithIdentifier:@"MyViewControllerID"];
    
    [self.navigationController pushViewController:aVC animated:YES];


你可能感兴趣的:(iOS--代码关联storyboard)