Xcode 6中用于iPhone和iPad的不同故事板 [英] Different storyboards for iPhone and iPad in xcode 6

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

问题描述

我正在为iPhone和iPad使用不同的故事板. Main.storyboard Main〜iPad.storyboard .但是,当我尝试在情节提要中设置资产时,它会以iPhone尺寸显示资产,因此,在将这些资产设置在正确的位置时遇到了问题.

I am using different storyboards for iPhone and iPad. Main.storyboard and Main~iPad.storyboard. But when I try to set assets in the storyboard it shows them in iPhone sizes due to which I am having issues setting those assets in the correct place.

是否有一种方法可以使它根据情节提要来检测正确的资产?这样就可以显示 Main.storyboard 的iPhone资产和 Main〜ipad.storyboard 的iPad资产?

Is there a way to make it detect the correct assets as per storyboard? such that it shows iPhone assets for Main.storyboard and iPad assets for Main~ipad.storyboard?

推荐答案

确保已将设备"设置为通用":

Make sure you have set the Devices to "Universal":

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

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