Reporting incorrect bounds in landscape Mode

前端 未结 9 1131
青春惊慌失措
青春惊慌失措 2020-12-05 02:57

I am having an issue with Landscape mode in my iPad application.

I created a very small new project to show my issue I set UIInterfaceOrientation in the pList to UII

9条回答
  •  佛祖请我去吃肉
    2020-12-05 03:33

    One of the comments on the accepted answer contained the solution to the problem for me.

    There is a method you can override on UIViewController called "viewDidLayoutSubviews", I tapped into it and adjusted my containing views from there.

    And since its called after "viewWillAppear" and before "viewDidAppear" the changes you make to the subviews show up as expected, no glitches.

提交回复
热议问题