Last active
August 29, 2015 14:20
-
-
Save travis-g/8ddbfc492ecdcbe202c6 to your computer and use it in GitHub Desktop.
Fullscreen Tumblr Tweak
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
Package: io.tjg.fullscreentumblr | |
Name: Fullscreen Tumblr | |
Depends: mobilesubstrate, firmware (>=7.0) | |
Version: 1.0 | |
Architecture: iphoneos-arm | |
Description: Browser Tumblr in fullscreen. | |
Maintainer: /u/Travis-g | |
Author: /u/Travis-g | |
Depiction: http://repo.tjg.io/depiction/io.tjg.fullscreentumblr.html | |
Section: Tweaks |
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
#import <substrate.h> | |
// hide the status bar (fullscreen) | |
%hook TMPostsViewController | |
- (BOOL)prefersStatusBarHidden | |
{ | |
return YES; | |
} | |
%end | |
%hook TMWebBrowser | |
- (BOOL)prefersStatusBarHidden | |
{ | |
return YES; | |
} | |
%end | |
// set the statusbar styles: | |
%hook TMStatusBarBackground | |
- (id)initWithFrame:(CGRect)arg1 | |
{ | |
return nil; | |
} | |
%end | |
%hook TMNavigationController | |
- (int)preferredStatusBarStyle | |
{ | |
return 3; | |
} | |
%end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment