Xcode 4.2,将iPhone xib更改为iPad xib [英] Xcode 4.2 , change the iPhone xib to iPad xib

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

问题描述

我创建了由5个xib组成的项目。当我尝试在iPad模拟器中运行项目时。一些Xib正在进入iPhone屏幕尺寸。我想转换那些支持iPad Xib屏幕尺寸的iphone xib。知道怎么做吗?

I have created the project which consists of 5 xibs. When I try to run the project in the iPad simulator . Some of the Xibs are coming in the iPhone screen size. I want to convert those iphone xibs which will support the iPad Xib screen size. Any idea how to do it ?

注意:我想支持iPhone和iPad

NOTE: I want to support both the iPhone and iPad

推荐答案

我刚刚复制了旧的Xib,最后将其重命名为~ipad。而在源代码而不是320 * 480我已经取代了iPad的分辨率。我的UI即界面构建器看起来像iPad,我的应用程序正在检测ipad xib。谢谢你的每一个。

I have just copied the old Xib and renamed it as ~ipad at the last. And in the source code instead of 320*480 I have replaced the iPad resolution. And my UI i.e interface builder looks like the iPad and my application is detecting the ipad xib's . Thanks for every one.

这篇关于Xcode 4.2,将iPhone xib更改为iPad xib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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