Toolbar containing UIBarButtonItem isn't added to UIPopoverController's passthroughViews

Originator:arkadiusz.holko
Number:rdar://17406793 Date Originated:21-Jun-2014 02:38 PM
Status:Open Resolved:
Product:iOS SDK Product Version:8.0 beta 2
Classification:Other Bug Reproducible:Always
 
Summary:
The documentation of: presentPopoverFromBarButtonItem:permittedArrowDirections:animated: notes that:
"When presenting the popover, this method adds the toolbar that owns the button to the popover’s list of passthrough views."

On iOS 8 beta 2 the toolbar behaves like it was in the passthroughViews array, but the array is actually empty.

Why does it matter?
If the toolbar was in the array, it would be possible to remove it from the array manually.


Steps to Reproduce:
1. Create an iPad app with a toolbar and add two buttons to it
2. Add an action to one of the buttons that shows the popover with presentPopoverFromBarButtonItem:permittedArrowDirections:animated:

Expected Results:
Note that after sending presentPopoverFromBarButtonItem:permittedArrowDirections:animated: to UIPopoverController instance its passthroughViews is nil. But if you tap on the other bar button (when the popover is still visible), the tap is recognized.

Actual Results:
passthroughViews should contain the toolbar object.

Version:
iOS 8 beta 2

Configuration:
iOS Simulator and iPad 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!