diff --git a/Example/SJVideoPlayer.xcworkspace/xcuserdata/bluedancer.xcuserdatad/UserInterfaceState.xcuserstate b/Example/SJVideoPlayer.xcworkspace/xcuserdata/bluedancer.xcuserdatad/UserInterfaceState.xcuserstate index 60ebada77..f9ddc8587 100644 Binary files a/Example/SJVideoPlayer.xcworkspace/xcuserdata/bluedancer.xcuserdatad/UserInterfaceState.xcuserstate and b/Example/SJVideoPlayer.xcworkspace/xcuserdata/bluedancer.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/Example/SJVideoPlayer/Demos/iPhone Demo/Rotation Control/Rotate Player View And View Controller/3/SJRotationModeDemoViewController3.m b/Example/SJVideoPlayer/Demos/iPhone Demo/Rotation Control/Rotate Player View And View Controller/3/SJRotationModeDemoViewController3.m index 8ca114f45..41454a728 100644 --- a/Example/SJVideoPlayer/Demos/iPhone Demo/Rotation Control/Rotate Player View And View Controller/3/SJRotationModeDemoViewController3.m +++ b/Example/SJVideoPlayer/Demos/iPhone Demo/Rotation Control/Rotate Player View And View Controller/3/SJRotationModeDemoViewController3.m @@ -25,9 +25,6 @@ - (void)viewDidLoad { [self _setupViews]; - [UIDevice.currentDevice setValue:@(UIDeviceOrientationUnknown) forKey:@"orientation"]; - [UIDevice.currentDevice setValue:@(UIInterfaceOrientationLandscapeRight) forKey:@"orientation"]; - // Do any additional setup after loading the view from its nib. } @@ -47,7 +44,7 @@ - (BOOL)shouldAutorotate { } - (UIInterfaceOrientationMask)supportedInterfaceOrientations { - return UIInterfaceOrientationMaskLandscapeRight; + return UIInterfaceOrientationMaskLandscape; } - (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { @@ -111,7 +108,7 @@ + (NSString *)routePath { } + (void)handleRequest:(SJRouteRequest *)request topViewController:(UIViewController *)topViewController completionHandler:(SJCompletionHandler)completionHandler { - [topViewController.navigationController pushViewController:[[SJRotationModeDemoViewController3 alloc] initWithNibName:@"SJRotationModeDemoViewController3" bundle:nil] animated:YES]; + [topViewController presentViewController:[[SJRotationModeDemoViewController3 alloc] initWithNibName:@"SJRotationModeDemoViewController3" bundle:nil] animated:YES completion:nil]; } @end