ios - Xcode 6 中不同设备的不同 Storyboard

标签 ios iphone xcode ipad storyboard

在新的 Xcode 6 中,我们只有一个用于通用应用程序的 Storyboard。但我的应用程序的差异超出了 iPhone 和 iPad 之间屏幕尺寸的不同。我的 App iPhone 屏幕不旋转,它只是纵向,而我的 iPad 屏幕全部旋转。我的 iPhone 首屏是表格 View ,而我的 iPad 首屏是 Collection View ,还有其他区别。 我怎样才能在 Xcode 6 中实现它?

换句话说。在 Xcode 5 甚至使用通用应用程序时,我有两个 Storyboard,一个用于 iPad,另一个用于 iPhone。但是现在,在 Xcode 6 中,通用应用程序只有一个 Storyboard。我想再次拥​​有两个 Storyboard,但我没有找到如何做到这一点。

最佳答案

  1. 打开您的项目设置>>选择信息
  2. 在 Custom iOS Target Properties 中添加 New row name Main storyboard file base name (iPad) 并将值设置为“您的新 Storyboard文件名”

或者 你可以在我的博客中找到方法

Xcode 6 Separate storyboard for iPad and iPhone

关于ios - Xcode 6 中不同设备的不同 Storyboard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25819141/

相关文章:

ios - 角 Dart : Route links in Safari on iOS 7 stop working

c - 使用 XCode 通过 K&R 学习 C,但错误太多

xcode - 创建发布版本时项目找不到框架

ios - Firebase 查询只返回新帖子?

ios - Cocoapods 解决版本冲突

ios - 应用商店拒绝,因为 "should have all included URLs fully functional"

iphone - @dynamic 使用的常见情况是什么?

iphone - 以编程方式切换到横向模式,然后返回横向/纵向模式

ios - 无法为 TableView Controller (UITableViewController) 选择自定义类

ios - Swift:从 SQLite.swift 访问 NULL 值时应用程序崩溃