在某ViewController强制转屏或者禁止转屏或者强制屏幕旋转方向。

这些方法都不能在subViewController中执行。
禁止/允许转屏:
- (BOOL)shouldAutorotate { return YES; }
屏幕旋转方向:
- (NSUInteger)supportedInterfaceOrientations { return (UIInterfaceOrientationMaskAll); }

评论

此博客中的热门博文

使__attribute__((annotate("xxx")))能作用于OC函数

viewWillAppear不执行的解决办法

iOS中使用xpc/xpc.h