-
-
Save Mabdelwanis/2516fe232f534f3952088b0561294986 to your computer and use it in GitHub Desktop.
This file contains 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