IOS 代码跳转StoryBoard界面

2016-04-26  本文已影响1820人  大强哥
        //将我们的storyBoard实例化,“Main”为StoryBoard的名称
        UIStoryboard *mainStoryBoard = [UIStoryboard storyboardWithName:@"Me" bundle:nil];
        
        //将第二个控制器实例化,"SecondViewController"为我们设置的控制器的ID
        ReceiptAddressVC *vc = [mainStoryBoard instantiateViewControllerWithIdentifier:@"ReceiptAddressVC"];
        [self.navigationController pushViewController:vc animated:YES];
上一篇下一篇

猜你喜欢

热点阅读