Can't set UINavigationBar tint color?

2014-06-23 Thread Rick Mann
I'm having a heck of a time setting the tint color for a navigation bar. I can't set it in IB (my controller is contained in a UINavigationController, which is embedded in another custom controller). I can't set the tint bar directly when the root navigation controller is embedded in its

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Carl Hoefs
FWIW, for setting the UINavigationBar color you can specify any color as long as it's white. The -tintColor method appears to specify the color of the text within the navbar button items only. -Carl On Jun 23, 2014, at 6:08 PM, Rick Mann rm...@latencyzero.com wrote: I'm having a heck of a

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Rick Mann
Before, I had the nav bar as a separate entity in my view hierarchy. Then, I was able to select it and set the tint color to the color I wanted in IB. I changed things to a formal UINavigationController stack to make it easier for my contained class to modify the items in the nav bar, and now

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Carl Hoefs
Are you on iOS 7? You're describing an iOS 6 behavior. Doing the following on iOS 7 (in -viewDidLoad): self.navigationController.navigationBar.tintColor = [UIColor redColor]; has no effect other than changing the text within the bar items. Under iOS 6 it changed the tint of the entire

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Rick Mann
iOS 7.1 in the simulator. On Jun 23, 2014, at 18:52 , Carl Hoefs newsli...@autonomy.caltech.edu wrote: Are you on iOS 7? You're describing an iOS 6 behavior. Doing the following on iOS 7 (in -viewDidLoad): self.navigationController.navigationBar.tintColor = [UIColor redColor]; has no

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Carl Hoefs
-tintColor The tint color to apply to the navigation items and bar button items. If you do manage to get it working under iOS 7, post it! The white nav bar is the ugliest part of my app! -Carl On Jun 23, 2014, at 6:53 PM, Rick Mann rm...@latencyzero.com wrote: iOS 7.1 in the simulator. On

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Rick Mann
Found it! It's barTintColor! Thanks for getting me to look in the headers! On Jun 23, 2014, at 18:56 , Carl Hoefs newsli...@autonomy.caltech.edu wrote: -tintColor The tint color to apply to the navigation items and bar button items. If you do manage to get it working under iOS 7, post it!

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Carl Hoefs
Ah! You're a genius! It works perfectly! -Carl On Jun 23, 2014, at 6:56 PM, Rick Mann rm...@latencyzero.com wrote: Found it! It's barTintColor! Thanks for getting me to look in the headers! On Jun 23, 2014, at 18:56 , Carl Hoefs newsli...@autonomy.caltech.edu wrote: -tintColor The

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Rick Mann
A genius wouldn't have spent the last 2 hours on this... Especially because I think I've run into this before. Augh, too many projects on too many platforms. On Jun 23, 2014, at 19:00 , Carl Hoefs newsli...@autonomy.caltech.edu wrote: Ah! You're a genius! It works perfectly! -Carl On Jun

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Carl Hoefs
Relax. You've just helped improve iOS apps all across the globe! -Carl On Jun 23, 2014, at 7:01 PM, Rick Mann rm...@latencyzero.com wrote: A genius wouldn't have spent the last 2 hours on this... Especially because I think I've run into this before. Augh, too many projects on too many

Re: Can't set UINavigationBar tint color?

2014-06-23 Thread Rick Mann
Heh, thanks. I also wrote a bug to Apple saying I should be able to do this in IB. On Jun 23, 2014, at 19:04 , Carl Hoefs newsli...@autonomy.caltech.edu wrote: Relax. You've just helped improve iOS apps all across the globe! -Carl On Jun 23, 2014, at 7:01 PM, Rick Mann