Skip to content

Instantly share code, notes, and snippets.

@enriquez
Created November 10, 2013 06:01
Show Gist options
  • Save enriquez/7394429 to your computer and use it in GitHub Desktop.
Save enriquez/7394429 to your computer and use it in GitHub Desktop.
Use Private API for hiding status bar text. The Apple Product images (https://developer.apple.com/app-store/marketing/guidelines/#images) provide a generic status bar with full cell signal, 9:41 time, and full battery. I used this code to hide the status bar and took screenshots with the simulator. Then I placed the screenshots into the product …
#import "MEAppDelegate.h"
@interface UIStatusBar
@property(retain) UIColor * foregroundColor;
@end
@implementation MEAppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
UIStatusBar *statusBar = [[UIApplication sharedApplication] valueForKey:@"_statusBar"];
statusBar.foregroundColor = [UIColor clearColor];
return YES;
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment