Dismissing a popover can also lead to dismissing it's parent controller (regression)

Number:rdar://19067761 Date Originated:22-Nov-2014 01:28 PM
Status:Closed Resolved:
Product:iOS Product Version:iOS 8.1.1
Classification:Serious Bug Reproducible:Always
Dismissing a popover can also lead to dismissing it's parent controller if the user double-taps to dismiss. This is a regression from iOS 7 where it works as expected.

Steps to Reproduce:
Open the attached example, then read the instructions in the alert and double-tap into the yellow area do see the issue.

Expected Results:
Should only ever dismiss the popover it controls, not the parent.

Actual Results:
Dismisses the parent as well.

This works under iOS 7 and is a regression in iOS 8. The example isn’t built to be run under 7, but with changing this to a UIPopoverController it shows the same bug, but works fine on 7.

The sample also shows UIKit pseudocode where you see that someone forgot checking [controller dismissing] in the code path where the delegate isn’t implemented - that’s whys simply implementing the delegate actually fixes the issue.


Fixed in iOS 8.4

iOS 8.3

Is it still reproducible on iOS 8.3?

By vaghela.amit at Feb. 18, 2015, 11:29 p.m. (reply...)

Fixed in PSPDFKit 4.1.2: https://pspdfkit.com/changelog


Example to this issue is here: http://cl.ly/162r3T1V3x39

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!