在工作区中使用2个项目和2个不同的项目

时间:2013-09-19 10:33:53

标签: ios storyboard

我正在开展一个项目,但有不同的屏幕。由于我已经告诉创建2个项目的复杂性更多,然后将其归为1个应用程序。

所以基本上我有2个项目让我们把它命名为A和B.并且它们都有2个不同的故事板。 现在我希望这些项目能够实现,当应用程序触发项目A中的故事板时,应该显示项目A中有按钮,点击后应显示项目B.

我怎样才能做到这一点。任何伙伴都可以帮助我..

1 个答案:

答案 0 :(得分:0)

我不确定这一点,但你可以试试这个

UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"YourStoryboardName" bundle:nil];
YourViewController *objViewController = [storyboard instantiateViewControllerWithIdentifier:@"YourViewController"];
[self.navigationController pushViewController:objViewController animated:YES];
相关问题