objective-cで回転設定してもうまく行かなくてイライラしてたけど。
PR
UIDeviceOrientation deviceOrientation = [UIDevice currentDevice].orientation;
if (UIDeviceOrientationIsLandscape(deviceOrientation)) {
[[UIDevice currentDevice] setValue:@(UIInterfaceOrientationPortrait) forKey:@"orientation"];
}
って感じで強制的に画面回せるのね。
特定の画面だけ回したい場合に戻ってくると回転状態のままとかで困ってた