简体   繁体   English

iOS-我如何使在iPhone故事板上开发的应用程序也可以在iPad上运行?

[英]ios - how do I make an app which I developed on the iPhone storyboard also work on the iPad?

I have an app that is nearing completion. 我有一个即将完成的应用程序。 So far I have just been using the iPhone storyboard to map out the navigation, but I would also like the app to work on the iPad. 到目前为止,我一直在使用iPhone故事板来绘制导航图,但我也希望该应用程序可以在iPad上运行。 Is there a way to just "make it work" or do I have to re-do by hand the entire app flow on the iPad's storyboard? 有没有一种方法可以使它“正常工作”,或者我必须手动在iPad的故事板上重新执行整个应用程序流程?

Thanks! 谢谢!

Considering they have different resolutions, and aspect ratios, you really just have to grin and bear it, and convert it all manually. 考虑到它们具有不同的分辨率和宽高比,您实际上只需要咧着嘴笑,然后手动将其全部转换即可。 You can at least copy the storyboard file to a new one, and adjust the views one by one to be ipad-sized 您至少可以将情节提要文件复制到一个新的故事板上,然后将视图一一调整为ipad大小

If you made it a universal app, I'd suggest creating another storyboard targeted for iPad and work from scratch. 如果您将其设为通用应用程序,则建议您创建另一个针对iPad的故事板,并从头开始工作。 You can still use all the controllers and methods therein for your new views (considering there's nothing very specific) with some slight modifications to adjust for the iPad. 您仍然可以对其中的所有视图使用新的控制器和方法(考虑到没有什么非常具体的功能),并进行一些细微修改以适应iPad。

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

相关问题 如何仅使用单个故事板来本地化iOS(iPhone / iPad)应用程序? - How to localize iOS (iPhone/iPad) app using only single storyboard? ios - 我已成功将故事板UIWebView连接到iPhone的控制器,但不能用于iPad - ios - I had successfully connected a storyboard UIWebView to the controller for iPhone, but can not do it for iPad 如何在iPad应用中制作动画? - How do I make animations in an iPad app? 如何使我的iPhone应用程序在iPad上运行? - How to make my iphone app work on an iPad? 如何为iPad Pro缩放iPad应用程序比例? - How do I make an iPad app scale for the iPad pro? 如何为使用Xcode开发的iPhone应用程序制作自定义应用程序内相机? - how can i make a custom, in-app camera for my iphone app developed in xcode? 如何提示iPhone / iPad访问者安装本机应用程序? - How do I prompt iPhone/iPad visitors to install native app? 我如何确保以xcode4.2开发的应用程序将支持ios4和ios5 - How can I make sure that app developed in xcode4.2 will support ios4 as well as ios5 如何在不支持iPhone 5S的情况下使iOS 6应用程序支持iPhone 6? - How do I make an iOS app support iPhone 6, without supporting iPhone 5S? 我如何编写一个使用iOS5 twitter框架的iphone应用程序,但是它会在iOS4上优雅地降级? - How do I write an iphone app that uses the iOS5 twitter framework, but which will gracefully degrade on iOS4?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM