Xcode 6中不同设备的不同故事板 [英] Different storyboards for different devices in Xcode 6

查看:116
本文介绍了Xcode 6中不同设备的不同故事板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在新的Xcode 6中,我们只有一个适用于通用应用的故事板。但我的应用程序的差异超出了iPhone和iPad之间屏幕的不同大小。我的应用程序iPhone屏幕不旋转,它只是肖像,我的iPad屏幕全部旋转。我的iPhone第一个屏幕是一个表视图,而我的iPad第一个屏幕是一个集合视图,和其他差异。
如何在Xcode 6中实现?

In the new Xcode 6, we have just one storyboard for universal apps. But the differences in my app are beyond the different sizes of the screen between iPhone and iPad. My App iPhone screen does not rotate, it's just portrait, and my iPad screen rotate all. My iPhone first screen is a table view, and my iPad first screen is a collection view, and other differences. How can I make it happen in Xcode 6?

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

In other words. At Xcode 5 even using universal apps, i have two storyboards, one for iPad and another for iPhone. But now, in Xcode 6, theres just one storyboard for universal apps. I want to have two storyboards again, but I didn't find how to do this.

推荐答案


在Xcode 5甚至使用通用应用程序,我有两个故事板,一个用于iPad,另一个用于iPhone。但现在,在Xcode 6中,只有一个用于通用应用程序的故事板。我想再次有两个故事板,但我没有找到如何做到这一点。

At Xcode 5 even using universal apps, i have two storyboards, one for iPad and another for iPhone. But now, in Xcode 6, theres just one storyboard for universal apps. I want to have two storyboards again, but I didn't find how to do this.

以你做的方式做同样的事情它在Xcode 5.没有法律规定你 在Xcode 6的通用应用程序中只有一个故事板。旧的方式工作得很好。我有应用仍然这样做(在iOS 8的Xcode 6中重新编译);它有效。

Do it the same way you were doing it in Xcode 5. No law says you have to have just one storyboard in a universal app in Xcode 6. The old way works just fine. I have apps that still do this (recompiled in Xcode 6 for iOS 8); it works.

然而,奇怪的事情无疑正在发生。看看这个屏幕截图。它显示了在Xcode 6中同时打开的两个项目。一个显示了用于在Universal设置中切换设置的iPhone / iPad按钮;另一个没有。我找不到导致这个不同界面的两个项目之间的区别。

However, something odd is undoubtedly going on. Look at this screen shot. It shows two projects open simultaneously in Xcode 6. One shows the iPhone / iPad buttons for switching between settings within the Universal setting; the other doesn't. I can't find a difference between the two projects that causes this differing interface.

这篇关于Xcode 6中不同设备的不同故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆