Autolayout and Device Orientation

后端 未结 4 1713
灰色年华
灰色年华 2021-01-05 09:51

I am developing an application which supports portrait and landscape modes. I am using auto layout to arrange my views. As i have been reading many

4条回答
  •  孤独总比滥情好
    2021-01-05 10:17

    for ios8+

    From the documentation for:

    - (void)willTransitionToTraitCollection:(UITraitCollection *)newCollection
              withTransitionCoordinator:(id)coordinator
    

    A standard view controller might use this method to change the constraints on the views it manages.

提交回复
热议问题