【发布时间】:2014-07-13 17:45:15
【问题描述】:
我是 iOS 的新手程序员,我正在使用带有 xcode 5.x 的 Mountain Lion 的 Mac mini。
我想创建一个 iOS 应用程序,它在用户界面方面非常重要。所以使用故事板对我来说很困难。我想创建一个 MainStoryboard 和其他几个故事板,将它们连接起来,使它们可以按顺序或特定顺序一起运行。
这可能吗,如果可以,请指导我。
【问题讨论】:
标签: ios xcode storyboard
我是 iOS 的新手程序员,我正在使用带有 xcode 5.x 的 Mountain Lion 的 Mac mini。
我想创建一个 iOS 应用程序,它在用户界面方面非常重要。所以使用故事板对我来说很困难。我想创建一个 MainStoryboard 和其他几个故事板,将它们连接起来,使它们可以按顺序或特定顺序一起运行。
这可能吗,如果可以,请指导我。
【问题讨论】:
标签: ios xcode storyboard
我认为你不能从 IB 推送或展示新的故事板,但你可以通过这种方式加载它:
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Storyboard" bundle:nil];
UIViewController *viewController = [storyboard instantiateInitialViewController];
//Or use UIViewController* viewController = [storyboard instantiateViewControllerWithIdentifier:@"Storyboard_ID"];
【讨论】: