summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2013-11-10 08:44:01 +0400
committerGravatar Vitaly Takmazov2013-11-10 08:44:01 +0400
commit30d5a48967bed1ffd26ac571523883ce495f0e8d (patch)
treec7abe803277f36793d59f78c5db7982029498d9a /Juick/AppDelegate.m
parent508ba6b17f37e60af73fe5e5168b3d0b88ddd085 (diff)
iOS 6.1 partial support
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m9
1 files changed, 5 insertions, 4 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index 292ef7f..2853cfd 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -18,10 +18,11 @@
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// style the navigation bar
- [[UINavigationBar appearance] setBarTintColor:[ColorsAndButtons navbarBackground]];
- [[UINavigationBar appearance] setTintColor:[ColorsAndButtons navbarFont]];
- [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [ColorsAndButtons navbarFont]}];
-
+ if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1) {
+ [[UINavigationBar appearance] setBarTintColor:[ColorsAndButtons navbarBackground]];
+ [[UINavigationBar appearance] setTintColor:[ColorsAndButtons navbarFont]];
+ [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [ColorsAndButtons navbarFont]}];
+ }
// make the status bar white
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;