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

后端 未结 30 3274
醉话见心
醉话见心 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 05:54

    First show this image. In that image you show warning for Retina 4 support so click on this warning and click on add so your Retina 4 splash screen automatically add in your project.

    Show image here

    and after you use this code :

    if([[UIScreen mainScreen] bounds].size.height == 568)
        {
            // For iphone 5
        }
        else
        {
            // For iphone 4 or less
        }
    

提交回复
热议问题