Objective C - 适用于iPad和iPhone的一个故事板 [英] Objective C - One storyboard for iPad and iPhone

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

问题描述

我只是想知道iPad和iPhone应用程序是否可以共享相同的故事板?

I just want to know if it is possible for an iPad and iPhone application to share the same storyboard?

我目前有2个故事板,一个用于iPad和一个对于iPhone。是否可以让两个设备在同一个故事板上运行?

I currently have 2 storyboards, one for iPad and one for iPhone. Is it possible to have both devices running form the same storyboard?

问候,
EZFrag

Regards, EZFrag

推荐答案

如果您的iPhone和iPad具有相同的视图,那么这是可能的,您在iPhone中创建的视图将拉伸以填充iPad屏幕,但不建议这样做,因为iPad有更大的屏幕你应为iPad和iPhone创建具有不同视图排列和结构的不同视图

If your iPhone and iPad has same views, then this is possible, the views you create in your iPhone will stretch to fill the iPad screen, however this is not recommended since iPad has bigger screen you should create different views with different view arrangements and structure for both the iPad and the iPhone

为iPad和iPhone设置相同的故事板检查屏幕截图

To set the same story board for the iPad and iPhone check the screen shot

这篇关于Objective C - 适用于iPad和iPhone的一个故事板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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