UITableViewCell frame is misaligned after beginUpdates/endUpdates while editing
| Originator: | uson1x | ||
| Number: | rdar://30327097 | Date Originated: | 02.02.2017 |
| Status: | Open | Resolved: | |
| Product: | iOS + SDK | Product Version: | 10.2.1 |
| Classification: | UI/Usability | Reproducible: | Always |
Title: UITableViewCell frame is misaligned after beginUpdates/endUpdates while editing Description: Auto-sizing UITableViewCell frame is misaligned if you put a UITextField inside one of the cells, make this text field a first responder, then call beginUpdates()/endUpdates() on a table view and then scroll away from this cell/scroll back. We use beginUpdates()/endUpdates() to update the height of the cell without reloading the row, because it is essential to keep the keyboard on screen. Steps to reproduce: 1. Create a few auto-sizing cells 2. Put UITextField into one of them 3. Launch the app 3. Tap on that text field 4. Call beginUpdates() + endUpdates() on that table view 5. Keep the keyboard on-screen. 6. Scroll away, so that the text field cell is not visible any longer. 7. Scroll back Expected result: UITableViewCell is placed where it was. Actual result: UITableViewCell frame is incorrect (much lower than it should be) Device: iPhone 6s on Wi Fi Version: iOS 10.2.1
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!