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.
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.
for ios 9.0 + (cpvc is your ViewController)
cpvc.popoverPresentationController.backgroundColor = cpvc.view.backgroundColor;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With