views:

3730

answers:

2

I'm working on an iPad application and I'm using UIPopoverControllers. I'm at the part where the app needs to be branded and styled and i'm wondering how to change the color / tint of the UIPopoverController? Standard is dark blue but it needs to be another color..

is this possible?

Greets, Thomas

A: 

The iPad SDK is still under NDA; for a definitive answer you might have to ask in the Apple developer forums. Nothing I've seen, though, indicates that this is possible—do you see a tintColor property on UIPopoverController? Alert views, tab bars, sheets, and so on don't expose much in the way of appearance customization; as with those, if you want a custom-colored popover you're probably going to have to roll your own.

Noah Witherspoon
+6  A: 

It's impossible for now.

It's what I call the "Box in a Box" model. You get control of the box inside of the box (the UIViewController inside of the UIPopoverController), but you have very limited control over the actual popover itself. Outside of the arrow direction and the size, you can't change much else. There are also options for a modal effect popover, which dims everything else when it shows up, but I haven't tried to get it working.

I'm sure you've noticed there is no UIPopover class by now.

The answer you want to hear:
If you really want to style one that bad, just write your own. It's really not that hard.

Sneakyness