UITableViewController clearsSelectionOnViewWillAppear Fails with Rapid UINavigationController interactivePopGestureRecognizer Action
Originator: | jeff | ||
Number: | rdar://18513764 | Date Originated: | 2014-10-01 |
Status: | Closed as Duplicate 14489357 (Open) | Resolved: | |
Product: | iOS SDK | Product Version: | 8.0 |
Classification: | Reproducible: | Always |
Attachment: https://jeffvautin.com/wp-content/uploads/openradar/radarInteractivePopGestureRecognizer.zip Summary: The UITableViewController BOOL property clearsSelectionOnViewWillAppear *usually* does what it is supposed to - clearing the selection when -(void)viewWillAppear is called. If the UITableViewController is embedded in a UINavigationController, this BOOL behaves appropriately when using the Back navigation button, and when using the interactivePopGestureRecognizer at slow speeds. When the interactivePopGestureRecognizer is used to return to the UITableViewController, and the user applies the gesture very quickly, the cell selection is *not* cleared. In the attached demo video, you can see this happen at 0:20 and 0:28. Steps to Reproduce: 1. In Xcode 6.0.1, create a new iPhone-only Master-Detail Application project. 2. Run the application in the simulator or on a device (confirmed on iPhone 5 + 6). 3. Add one or more objects to the Master View. 4. Touch a cell to push the Detail View onto the stack. 5. Swipe left to right *very* quickly to pop the detail view off the stack. Expected Results: Expect to see the detail view pop off the stack, revealing the Master View. In the Master View, the cell that had been selected should have its selection animated away. Actual Results: When Master View is revealed, the selection is not cleared. Version: iOS 8.0.2 (12A405), Xcode 6.0.1 Simulator Notes: Configuration: iPhone 6 T-Mobile 64GB, iPhone 5 AT&T 32GB, Simulator Attachments: 'radarInteractivePopGestureRecognizer_demo.mov' and 'radarInteractivePopGestureRecognizer.zip' were 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!