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

查看:27
本文介绍了将 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?

推荐答案

在这里找到答案:

如何使界面生成器中的 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.

...戴尔

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

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