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

柔情痞子 提交于 2019-11-27 20:40:51

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.

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!