Custom popover background color reset to default when UIPopover resizes

Originator:zacharias.pasternack
Number:rdar://21135663 Date Originated:05/27/15
Status:Open Resolved:
Product:iOS Product Version:8.3
Classification:UI Reproducible:Always
 
If a custom popover background is set (via UIPopoverController's backgroundColor property), that color is overridden (returned to the default UIPopoverController background color) when the content size of the view in the UIPopover changes size.

Steps to Reproduce:
1. Install Xcode.
2. Load the attached project file.
3. Build and run.
4. In the built app, click the gear icon on the right-hand side of the toolbar on the top of the view. 
-- Observe: The resulting UIPopover's background color is red. This is expected: ViewController.swift has overridden prepareForSegue: and set the popover background color to red.
5. In the popover, click the Next button.
-- Observe: The UIPopover's background color is no longer red, it has changed back to the default color (not expected).

Expected Results:
Custom-set UIPopover background color should remain that color even when the popover changes size or location.

Actual Results:
Custom-set UIPopover background color changes back to default color when the popover changes size or location.

Version:
8.3 (12F69)

Notes:
Note: This only appears to occur when the popover is close to the right-hand side of the screen. If the gear button in the sample app is moved to the left a bit (via Fixed Space item, say), the issue doesn't occur.

Note: This also occurs (the color changing back to default) if the popover is moved or repositioned as a result of orientation change. So, after step 4, above, rotating the device will also trigger the behavior.

Note: Side note, when the popover is invoked in the enclosed sample app, the popover appears to be too far to the right - the arrow doesn't quite line up with the bar button item from which it is presented.

Configuration:
iPad 4 64GB Verizon

Attachments:
'PopoverColorTest.zip' was successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!