2

When I try to modally present a view controller the bar buttons on either side of the title of navigation bar are not showing up. This happens only when the "Buttons Shapes" accessibility feature is turned on under iPhone settings menu. It just shows up a plain blank white space. But when I try to tap the button I could see the button's presence and the button shape drawn around it.

Could some help and point me in right direction ?

Thanks

rmaddy
  • 314,917
  • 42
  • 532
  • 579
stack2012
  • 2,146
  • 2
  • 16
  • 23

1 Answers1

0

Check how you set tintColor, barTintColor, and barStyle of UINavigationBar's appearance. For a dark background and light foreground it works like this.

[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setBarTintColor:[UIColor blackColor]];
[[UINavigationBar appearance] setBarStyle:UIBarStyleBlack];

It's all advisable to look at UIBarButtonItem's appearance, e.g. titleTextAttributes.

See also this answer.

Community
  • 1
  • 1
orkoden
  • 18,946
  • 4
  • 59
  • 50