iPhone&相同应用的iPad版本? [英] iPhone & iPad versions of same app?

查看:96
本文介绍了iPhone&相同应用的iPad版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iPhone应用程序,并想创建它的iPad版本。当你想要一个iPhone和iPad版本的应用程序时,最好的方法是设置项目?

I have an iPhone app and would like to create iPad version of it. What is the best way to setup the project when you want an iPhone and iPad version of the app?

我看不到我可以使用代码库,因为iPad版本将有它的功能,iPhone版本不。

I don't see that I'm able to use the same code base since the iPad version will have features in it that the iPhone version doesn't. It seems as though maintenance is going to go up with two similar code bases for the same app.

推荐答案

重构公共部分并创建一个新的目标。你是唯一一个真正知道什么是最好的方法是。

Refactor the common portions out and create a new target. You're the only one who really knows what the best way to do that is.

这篇关于iPhone&相同应用的iPad版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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