Popover dismissal cascades into parent view dismissal
| Originator: | hamish | ||
| Number: | rdar://20136326 | Date Originated: | 12-Mar-2015 02:49 PM |
| Status: | Duplicate/18058333 | Resolved: | |
| Product: | iOS | Product Version: | 8.1.3 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: Consider view controller A presenting view controller B fullscreen, which in turn presents view controller C as a popover. A single tap outside of the popover dismissed view controller C as expected. However if another tap is made in the same region before view controller C has finished dismissing, view controller B is also dismissed. Steps to Reproduce: Launch the sample project and follow the instructions. Expected Results: Tapping twice to dismiss the popover view controller should not also dismiss its parent view controller. Actual Results: Tapping twice to dismiss the popover view controller also dismisses its parent view controller. Version: iOS 8.1.3
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!
Workaround
To work around this issue, it looks like it's sufficient to implement the popoverPresentationControllerShouldDismissPopover: delegate Method.
-(BOOL)popoverPresentationControllerShouldDismissPopover:(UIPopoverPresentationController *)popoverPresentationController { return YES; }