Skip to content

Instantly share code, notes, and snippets.

@thomasfinch
Created October 23, 2014 23:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save thomasfinch/a509087b96f1503cf207 to your computer and use it in GitHub Desktop.
Save thomasfinch/a509087b96f1503cf207 to your computer and use it in GitHub Desktop.
%hook SpringBoard
-(BOOL)homeScreenSupportsRotation {
return YES;
}
-(BOOL)homeScreenRotationStyleWantsUIKitRotation {
return YES;
}
-(int)homeScreenRotationStyle {
return 2; //iPhone 6+ style. 0 is normal iPhone style (no landscape), 1 is iPad style (horizontal dock)
}
%end
%hook SBLockScreenViewController
-(BOOL)shouldAutorotateToInterfaceOrientation:(int)interfaceOrientation {
return YES;
}
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment