将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?
谢谢
你是对的,
-
选择通用选项。
将代码从现有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.