sonOfWidgets
sonOfWidgets

Reputation: 139

IPAD - UISplitViewController's MainWindow NavigationBar tintColor Problem

Problem:

TintColor of the navigationBar of mainWindow gets back to grey color everytime I turn the iPad to portrait mode and show the popover.

Details:

Is this a bug? or are there more settings I need to configure for this to work?

Thanks in Advance

-- Jo

Upvotes: 2

Views: 1588

Answers (3)

Andy Steinmann
Andy Steinmann

Reputation: 89

Deffinately a bug, I submitted a developer support request to Apple and they basically said it was a known issue.

I have posted source code with a working example. http://realprogrammersdontgarbagecollect.blogspot.com/2011/01/splitviewcontroller-with-navigationbar.html

Upvotes: 2

sonOfWidgets
sonOfWidgets

Reputation: 139

I found workaround on devforums.apple.com from hoodah to change the class of the navigationbar using the Interface Builder to the class code below:

@interface iPadNavigationBar : UINavigationBar

@end

@implementation iPadNavigationBar

- (void)setTintColor:(UIColor *)tintColor
{
     // Bug workaround. 
     [super setTintColor:[self tintColor]];
}

@end

Hope it helps..

Upvotes: 4

dpjanes
dpjanes

Reputation: 5815

I think it's a bug and I've been having the problem also. If you have a small test case, I'd suggest raising it over on the Apple forums.

Upvotes: 0

Related Questions