Screen size of iPhone 5

前端 未结 3 862
情歌与酒
情歌与酒 2020-12-02 03:18

I\'m developing the app to work both on iphone4 and iPhone 5. I\'m using the following code to get the screen size

  CGRect screenBounds = [[UIScreen mainSc         


        
3条回答
  •  渐次进展
    2020-12-02 03:57

    When running the simulator, go to Hardware -> Device and make sure that iPhone (Retina 4-inch) is selected.

提交回复
热议问题