如何将现有的iPhone应用程序移植到iPad [英] How to port existing iPhone application to iPad

查看:530
本文介绍了如何将现有的iPhone应用程序移植到iPad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iPhone应用程序,现在我想将该应用程序转换为可在所有iPhone / iPod / iPad设备上运行的通用应用程序。
那么,从哪里开始,我需要做些什么?

I have an iPhone application, now i want to convert that application to a universal application which runs on all the devices iPhone/iPod/iPad. So, where to start, what things i need to do?

任何帮助,链接,示例应用程序,任何内容,都将受到高度赞赏。

Any help, link, sample app, anything, will be highly appreciated.

提前致谢:)

推荐答案

我最近这样做了,它实际上比看起来简单得多。我建议你阅读 iPad编程指南来自Apple,它大约有100页PDF(你不需要阅读全部内容)。基本上,您需要:

I've done that recently, it's actually much simpler than it would seem. I recommend you read the iPad programming guide from Apple, it's about 100 pages in PDF (and you don't need to read all of it). Basically, you need to:


  • 在Xcode中运行一个自动将项目转换为通用的命令

  • 添加对方向更改的支持,如果您之前没有这样做(在iPad上需要)

  • 浏览应用程序,看看有什么坏了并修复它(例如它很可能是你'我会看到你需要修复控件自动调整大小设置的地方。)

当然,如果你不想重新设计UI对于iPad,你可能最终想做(例如使用拆分视图,弹出对话框和各种模态,并减少全屏视图转换)。通过这些步骤获得的UI将不会感觉100%iPad-y,但它会起作用,并且看起来比仅放大iPhone的应用程序要好得多,所以这是一个良好的开端。

That's of course if you don't want to redesign the UI for iPad, which you'll probably want to do in the end (e.g. use split views, popup dialogs and various modals, and do less full screen view transitions). The UI that you'll get by going through this steps won't feel 100% iPad-y, but it will work, and will look much better than an iPhone-only app zoomed in, so it's a good start.

这篇关于如何将现有的iPhone应用程序移植到iPad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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