Popover arrow not the same color as the viewcontroller background

user2816600 picture user2816600 · Oct 21, 2013 · Viewed 11.2k times · Source

The title says it all really. I have a view controller connected to a button as a popover. The view controller's background color is grey, but the color of the arrow pointing to the button is white. Any help would be much appreciated.

Answer

mahboudz picture mahboudz · Jan 16, 2014

Here's how I get around it:

popover = [[UIPopoverController alloc] initWithContentViewController:contentViewController];
popover.backgroundColor = contentViewController.view.backgroundColor;

This matches the popover to the color of the content's background.