How to efficiently use Autolayut and Auto-Resizing in same target?

后端 未结 1 740
孤独总比滥情好
孤独总比滥情好 2021-01-28 02:00

I have one target. It\'s a login based application. Because of legacy code, I am forced to use Auto-Resizing in some View Controllers whereas I have updated newer UI using Auto-

1条回答
  •  孤独总比滥情好
    2021-01-28 02:44

    If I don't use the launch screen images, all the View that use auto layout are scaled up and appears slightly bigger than expected

    Correct. This is because, without the launch screen, your app is no longer compatible with devices like the iPhone 6 and 6 Plus. To compensate, the app is treated as if this were an iPhone 5 and is shown in zoomed mode.

    So if you want to run at native resolution / size on iPhone 6 and later, you must have the launch screen. That being so, setting up your interface to deal with the larger size is up to you. You do not have to adopt auto layout; autoresizing still works fine. (However, using auto layout would be better.)

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