Skip to content

Instantly share code, notes, and snippets.

@travis-g
Last active August 29, 2015 14:20
Show Gist options
  • Save travis-g/8ddbfc492ecdcbe202c6 to your computer and use it in GitHub Desktop.
Save travis-g/8ddbfc492ecdcbe202c6 to your computer and use it in GitHub Desktop.
Fullscreen Tumblr Tweak
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
#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