Skip to content

Commit

Permalink
Update Demo
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Aug 16, 2019
1 parent 5b1da3b commit 886c60e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

Expand All @@ -47,7 +44,7 @@ - (BOOL)shouldAutorotate {
}

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskLandscapeRight;
return UIInterfaceOrientationMaskLandscape;
}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
Expand Down Expand Up @@ -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

0 comments on commit 886c60e

Please sign in to comment.