Force iOS view to not rotate, while still allowing child to rotate

前端 未结 6 778
粉色の甜心
粉色の甜心 2021-02-02 02:42

I have a view controller with a child view controller.

tab bar controller
|
|
nav controller
|
|
UIPageViewController (should rotate)
|
|
A (Video Player) (shoul         


        
6条回答
  •  时光取名叫无心
    2021-02-02 03:12

    I'm not sure, but I think you could create an own class for your subview and override the shouldAutorotate method etc. That way it should override the shouldAutorotate from the parent-viewcontroller.

提交回复
热议问题