What is the best way for supporting both screen resolution of iPhone4 and iPhone5 ? - Auto layout in only iOS6

后端 未结 2 1771
陌清茗
陌清茗 2020-12-05 15:37

Have anyone figured out how to support both screen resolution iPhone4 and iPhone 5 ?

In iOS6 we have support of Autolayout. Can that be used for iPh

相关标签:
2条回答
  • 2020-12-05 16:07

    One other approach can be to design separate views for iPhone 5 and iPhone 4S. Check screensize and load views accordingly, as in the case of universal apps.

    0 讨论(0)
  • 2020-12-05 16:09

    If you want to support iOS 4.3 or 5 then turn off the Autolayout.Then you have to set the UIViewAutoresizing correctly either in code or interface builder.

    With the autoresizingMask on UIView you can make the view stick to aside and grow with the size of the superview.

    0 讨论(0)
提交回复
热议问题