Change default xib view in xCode 4.5 to 3.5“ and not 4”

余生颓废 提交于 2019-12-13 07:36:19

问题


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.

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?


回答1:


Found the answer here:

How to make a uitableview in interface builder compatible with a 4 inch iPhone

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



来源:https://stackoverflow.com/questions/12750862/change-default-xib-view-in-xcode-4-5-to-3-5-and-not-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!