Created
October 23, 2014 23:49
-
-
Save thomasfinch/a509087b96f1503cf207 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%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