iOS: disabling highlighting for collection view items stops selection from working
| Originator: | avedesk | ||
| Number: | rdar://28334424 | Date Originated: | 16-Sep-2016 10:18 AM |
| Status: | Open | Resolved: | resolved |
| Product: | Developer Tools | Product Version: | 9.3.5 |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When returning no from -[collectionView:shouldHighlightItemAtIndexPath:], -[collectionView:didSelectItemAtIndexPath:] is also not called when tapping a cell. Should one be able to select a cell without highlighting? The docs don't mention that these are linked together. Steps to Reproduce: 1. set up a collectionview 2. in its delegate return NO for -[collectionView:shouldHlighlightItemAtIndexPath:] 3. tap a cell Expected Results: 1. -[collectionView:didSelectItemAtIndexPath:] _is_ called Actual Results: 1. [-collectionView:didSelectItemAtIndexPath:] is not called. Regression: Notes:
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!
This issue behaves as intended based on the following:
The sequence is:
Highlighting is pre-condition to selection.