How to force black borders for UIPopoverControllers

UIPopoverControllerinstances can be restyled in iOS5 using the class UIPopoverBackgroundView. However, this setup method cannot be applied to UIActionSheets(presented as popovers on an iPad). I would like my popovers to seem consistent, so this UIPopoverBackgroundViewis not an option for me.

Running iOS (using extractor ) I notice that along with _UIPopoverViewBlue*PNG (supposedly used to paint the default blue -ish UIPopoverController) is a _UIPopoverViewBlack*set of PNGs. How to get UIPopoverControllerto use black images instead of blue?

+5
source share
1 answer

, . , App Store, iOS 6:

[popoverController setValue:@3 forKey:@"_popoverBackgroundStyle"];

Apple .

+11

All Articles