How to implement UIViewController rotation in response to orientation changes?

前端 未结 4 1232
伪装坚强ぢ
伪装坚强ぢ 2021-01-18 03:14

My app has about 10 different UIViewControllers, just one of which I want to switch to landscape mode if the device is rotated. (All the rest, I want to keep in portrait.)

4条回答
  •  误落风尘
    2021-01-18 03:56


    Returns YES on the navigation controller subclass only if [[navController topViewController] isKindOfClass:[RotatingViewController class]]

提交回复
热议问题