Last active
August 29, 2015 14:16
-
-
Save mpycio/ddbdea1adb6b86cf02f6 to your computer and use it in GitHub Desktop.
transparent navigation bar using appeareance
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
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; | |
[[UINavigationBar appearance] setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault]; | |
[[UINavigationBar appearance] setShadowImage:[UIImage new]]; | |
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor]}]; | |
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment