How can I create xibs for both iPhone 4 and iPhone 5 using Xcode 4.5

后端 未结 3 1622
走了就别回头了
走了就别回头了 2021-01-07 09:24

I have set deployment target as iOS 4.3 and creating viewcontroller with xib. But XCode 4.5 is creating xib for iPhone 5 (4 inch) only. How can I create a seperate xib for i

3条回答
  •  没有蜡笔的小新
    2021-01-07 09:56

    In 'Simulated Metrics' section of view's attributes inspector, you can choose between 3,5" or 4" sizes. Choose 3,5", and make your views and subviews resizable, iOS will automatically scale your view to fit iPhone 5's screen.

提交回复
热议问题