1

Possible Duplicate:
How to deal with iPhone 5 screen size?

The new iPhone 5 has a 4 inch display.

In IB, I want to make my iPhone 5 view different to my 4S. The 4S version needs a scroll view, but the 5 doesn't.

How can I create two views (with all connected outlets) in the same xib, one which is 3.5 inches, and one which is four inches?

Do I have to create a totally new xib and include it for iPhone5 ?

I am just a bit unclear on the approach.

(I have seen other questions which don't answer this particular question)

4

1 回答 1

2

如果您想要 iPhone 5 的完全不同的视图,那么是的,您应该使用不同的 nib,但是我建议您不必使用不同的 nib,而是使用自动布局来相应地自动调整视图大小,这样您就可以使用 1 个代码库多个设备。

于 2012-09-15T16:03:08.883 回答