解决方法
我已经解决了这个问题,添加下一个方法到app代理:
- (void)application:(UIApplication *)application willChangeStatusBarOrientation:(UIInterfaceOrientation)newStatusBarOrientation duration:(NSTimeInterval)duration { NSArray *windows = [application windows]; for (UIWindow *nextWindow in windows) { [[nextWindow.rootViewController class] attemptRotationToDeviceOrientation]; } }