【问题标题】:How to only show the MasterView on portrait for iPad如何仅在 iPad 的纵向上显示 MasterView
【发布时间】:2014-04-15 09:49:04
【问题描述】:

我希望 iPad 纵向只显示 UISplitViewController 的 MasterView,横向显示主视图和详细视图?
我该怎么做?

系统是iOS 7。

【问题讨论】:

    标签: ios ipad ios7 uisplitviewcontroller


    【解决方案1】:

    根据我的经验,使用 UIViewController 而不是使用 UISpiltViewController 。 在这个UIViewController 中有两个UIView(1-UITableView 和,2-DeatilView 的UIView 的子类)。现在从 UITableView 的单元格转到 DetailView 。在 UIViewController 中,您可以让 TableView 和 DetailsView 像 SpiltView 一样显示。 对于 LandScape 和 Portrait 调整 TableView 的大小。 表示现在可以根据orientation进行自定义了。

    【讨论】:

      猜你喜欢
      • 2014-10-25
      • 2013-03-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多