【问题标题】:Add a second UIViewController within a single-view application在单视图应用程序中添加第二个 UIViewController
【发布时间】:2014-07-20 20:38:25
【问题描述】:

我打开了一个单视图应用程序。 I need to have two storyboard views (UIViewControllers), because one is a Table View, but when one of the Table View elements is selected it brings up another screen with a normal UIViewController.有没有办法创建第二个故事板视图(UIViewController)?

【问题讨论】:

    标签: xcode cocoa-touch xcode-storyboard


    【解决方案1】:

    当然! Xcode 提供的那些模板绝不是“一成不变的”。当 Xcode 创建单视图模板时,它只是为您提供了创建更多内容的基础。您可以创建额外的类、视图控制器、视图和资源(除了 Xcode 以几种方式让您开始使用的东西)。

    要向 Storyboard 添加另一个视图控制器,只需从对象库中拖放一个即可:

    您似乎对使用 Xcode 或使用 Xcode 进行开发没有基本的了解。我建议在继续阅读之前阅读所有 Apple 的documentation on Xcode。您可能对Building A User Interface 部分特别感兴趣。

    【讨论】:

      猜你喜欢
      • 2013-03-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-02-21
      • 1970-01-01
      • 1970-01-01
      • 2021-11-01
      • 1970-01-01
      相关资源
      最近更新 更多