简体   繁体   English

在iPad上使用iPhone5故事板

[英]Use iPhone5 storyboard for iPad

So, we are not supporting iPad (like really create a storyboard for it and all) but we want to be able to load our current storyboard on it just in case some users might want to still download it on their iPads. 因此,我们不支持iPad(就像真的为其创建一个故事板一样),但是我们希望能够在其上加载当前的故事板,以防万一某些用户可能仍希望将其下载到他们的iPad上。 What we have is an iPhone5 storyboard. 我们拥有的是iPhone5故事板。 When we load it to an iPad, a portion is cut off which makes sense because we should have an iPhone4 storyboard to display everything on iPad. 当我们将其加载到iPad时,一部分会被切掉,这是有道理的,因为我们应该有一个iPhone4故事板来在iPad上显示一切。 But is there a way to just load our current iPhone5 storyboard on to an iPad without scaling it. 但是有没有一种方法可以将我们当前的iPhone5故事板加载到iPad上而不进行缩放。 Just let it fit in the screen? 只是让它适合屏幕? Or should we really make an iPhone4 storyboard? 还是我们真的应该制作一个iPhone4故事板?

You get what you with one action. 一举就能得到所得到的。 Just set in the settings of your project that it is for iPhone only, then iPad users will be able to use it, however, content will be centered and made small, like in iPhone 4 . 只需在项目设置中将其设置为仅用于iPhoneiPad用户就可以使用它,但是内容将像iPhone 4一样居中并iPhone 4 But there is an option to 2x that but it will looks ugly. 但是有2x的选项,但看起来很难看。 But the best solution is to create adaptive storyboard 但是最好的解决方案是创建自适应storyboard

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM