Created
September 24, 2013 18:25
-
-
Save miketihonchik/6689088 to your computer and use it in GitHub Desktop.
Create iOS6 like status bar in iOS7 application (I do this in didFinishLaunchingWithOptions method in AppDelegate)
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
if(IS_IOS_7) { | |
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; | |
self.window.clipsToBounds =YES; | |
self.window.frame = CGRectMake(0, 20, self.window.frame.size.width,self.window.frame.size.height-20); | |
self.window.bounds = CGRectMake(0, 20, self.window.frame.size.width, self.window.frame.size.height); | |
} | |
return YES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment