将iphone App转换为iPad [英] convert iphone App to IPad

查看:269
本文介绍了将iphone App转换为iPad的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在iPhone上完成了一个应用程序,现在我想为iPhone和iPad创建相同的应用程序。

I just completed one app in iPhone, now I wants to create same app for both iPhone and iPad.

我是iPhone新手,所以不知道究竟该怎么办?

I am new in iPhone, So don't know exact what to do?

1)创建新项目并选择Universal选项,并复制粘贴所有代码

1) create the new project and select Universal option, and copy paste all code

2)修改此项适用于两者的应用。

2) modify this app for both.

如何为iPad添加xib?

How to add xib for iPad?

谢谢

推荐答案

你是对的,


  1. 选择通用选项。

将代码从现有iPhone项目传输到新项目。
NOW,

Transfer code from the existing iPhone project to the new project. NOW,

为iPad制作 xib 文件,并建立连接(IBOutlets)。

Make the xib files for iPad, and make the connections (IBOutlets).

无论您需要特定于平台的功能(例如,适用于iPad的Popover,Split ViewController等),请将 IF 语句添加到处理设备特定功能。

Wherever you need platform specific features (eg. Popover, Split ViewController etc for iPad), put an IF statement to handle the device specific features.

这篇关于将iphone App转换为iPad的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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