Change the color of the UIPopoverController (and the color of the button back)

I am trying to change the color from a UIPopoverControler to iOS 5. For this, I use a subclass of UIPopoverBackgroundView, which I assign to my popover as follows:

self.popover.popoverBackgroundViewClass = [KWPopoverBackgroundView class];

My popover is now black, as I defined in the KWPopoverBackgroundView class, but I still have a problem with the look. The back button (Medals) of the navigation controller inside my popover is still blue. I want everything to be black. How to get rid of this blue color?

enter image description here

I tried changing the tintColor of my navigationController.navigationBar, but of course the popover doesn't care about that. Is there any way to fix this in iOS 5.0? (My application is in the AppStore, I don't want an ugly hack to fix this) Thanks.

+5
1

, , UINavigationController ( UIBarButtonItems) UIPopoverController.

UIPopoverBackgroundView . , UIAppearance - .

// Set the UIBarButtonItem(s) inside UIPopoverController class to dark gray
[[UIBarButtonItem appearanceWhenContainedIn:[UIPopoverController class], nil] 
                        setTintColor:[UIColor colorWithWhite:0.1f alpha:1.0f]];

black popover with black back button item

+12

All Articles