将xCode 4.5中的默认xib视图更改为3.5”。而不是4” [英] Change default xib view in xCode 4.5 to 3.5" and not 4"

查看:179
本文介绍了将xCode 4.5中的默认xib视图更改为3.5”。而不是4”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从更新到xCode 4.5并发布具有4显示屏的iPhone 5以来,每次创建带有xib文件的新ViewController时,xib的默认显示尺寸均为4。

Since updating to xCode 4.5, and with the release of the iPhone 5 with the 4" display, each time I create a new ViewController with a xib file, the xib defaults to a 4" display size.

此刻,我正在研究Aaron Hillegass出色的iOS编程文本。所有示例均假设3.5 Xib。如何将新视图设置为3.5,而不是更高的瘦4默认xib视图?

At the moment I'm working through Aaron Hillegass's excellent iOS Programming text. All the examples assume a 3.5" Xib. How do I get new views to be 3.5" instead of the taller skinny 4" default xib views?

推荐答案

在这里找到答案:

如何在Interface Builder中使uitableview与4英寸iPhone兼容

该视图的属性检查器中有一个大小选项,我以前不曾看到过。选择 Retina 3.5全屏选项会将xib视图设置回原来的3.5英寸大小。

there is a 'Size' option in the view's attribute inspector that I somehow didn't see before. Picking the 'Retina 3.5 Full Screen' option sets the xib view back to the old 3.5" size.

... Dale

这篇关于将xCode 4.5中的默认xib视图更改为3.5”。而不是4”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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