2016-12-15 強制回転 iOS iOSで強制的に回転させる方法は以下の一文で良いようだ。 UIDevice.current.setValue(NSNumber(integerLiteral:UIDeviceOrientation.portrait.rawValue), forKey: "orientation")