How to develop or migrate apps for iPhone 5 screen resolution?

后端 未结 30 3179
醉话见心
醉话见心 2020-11-21 05:48

The new iPhone 5 display has a new aspect ratio and a new resolution (640 x 1136 pixels).

What is required to develop new or transition already existing applications

30条回答
  •  天涯浪人
    2020-11-21 06:10

    Use the Auto Layout feature for views. It will adjust automatically to all resolutions.

    Create two xibs for a controller having controller name with suffix either ~iphone or ~ipad. At compile time, Xcode will take the right xib based on the device.

    Use size classes, if you want to create a single xib for both iPhone and iPad, if the view is simple enough to port to iPhone and iPad.

提交回复
热议问题