[ios] Changed navigation appearance settings

This commit is contained in:
Igor Khmurets 2014-03-16 12:34:05 +03:00 committed by Alex Zolotarev
parent 2390cd9cef
commit e4f0ec2ff4

View file

@ -158,9 +158,11 @@ void InitLocalizedStrings()
attributes[UITextAttributeTextShadowColor] = [UIColor clearColor];
[[UINavigationBar appearance] setTintColor:[UIColor colorWithColorCode:@"393655"]];
if (!SYSTEM_VERSION_IS_LESS_THAN(@"7")) {
[[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
[[UIBarButtonItem appearance] setTitleTextAttributes:attributes forState:UIControlStateNormal];
[[UINavigationBar appearance] setBackgroundImage:[UIImage imageNamed:@"NavigationBarBackground7"] forBarMetrics:UIBarMetricsDefault];
attributes[UITextAttributeFont] = [UIFont fontWithName:@"HelveticaNeue" size:17.5];
[[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
}
if ([UINavigationBar instancesRespondToSelector:@selector(setShadowImage:)])
[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];