How can I display one UIView in landscape?

后端 未结 4 670
眼角桃花
眼角桃花 2020-12-13 11:08

I\'ve looked at every question so far and none seem to actually answer this question.

I created a UITabBarController and added several view controllers to it. Most

4条回答
  •  执念已碎
    2020-12-13 11:56

    shouldAutorotateToInterfaceOrientation only work if all the view in the tabbarcontroller or all the view controllers in the navigationcontroller agree upon a rotation.

提交回复
热议问题