0

I am updating my big project to ios7 . And When I update left navigation button have problem . I don't understand What is problem .

ios6: left button image haven't problem :

enter image description here

ios7: left button have problem

enter image description here

Also when I go next viewcontroller back button have same problem in ios7:

enter image description here

I am using for menu this image: link . image is transparent .

How can I solve this problem in ios7 . it's big project and ı can't share all code.When I read article , article says it's problem is setTintColor. right ?

sorry my English.

Thank you .

Erhan Demirci
  • 4,173
  • 4
  • 36
  • 44

3 Answers3

1

I changed global tint and I use this way to keep my UIBarButtonItem normal.

#define kColorGlobalTint [UIColor redColor]
UIColor *defaultColor = [UIView appearanceWhenContainedIn:[UINavigationBar class], nil].tintColor;
[[UIView appearance] setTintColor:kColorGlobalTint];
[[UIView appearanceWhenContainedIn:[UINavigationBar class], nil] setTintColor:defaultColor];

[[UINavigationBar appearance] setBarTintColor:kColorGlobalTint];
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
Aleiku
  • 11
  • 1
0

what is the color for your image used in the left top navigational bar button? you can try to change the following.

  1. Give the bar button item tint = clear color
  2. Give the button item tint under the bar button item as Default and its background as clear color.
  3. change Alpha Value of button item to 1.
azmuhak
  • 964
  • 1
  • 11
  • 31
0

I solved the problem .I added to viewDidLoad method

 if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7)
{
  [self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];
}
else
{
   [self.navigationController.navigationBar setTintColor:[UIColor colorWithRed:.694 green:.164 blue:.105 alpha:1.0f]];
}
Erhan Demirci
  • 4,173
  • 4
  • 36
  • 44