Re: UITableView: combining row moves with insert/delete/reload in animation
Re: UITableView: combining row moves with insert/delete/reload in animation
- Subject: Re: UITableView: combining row moves with insert/delete/reload in animation
- From: Jens Alfke <email@hidden>
- Date: Tue, 08 Mar 2016 13:33:55 -0800
> On Mar 8, 2016, at 11:58 AM, Luke Hiesterman <email@hidden> wrote:
>
> If you’re getting asked to create a row at index 3 from that code snippet, then that looks like a UIKit bug. I’d advise filing it at bugreport.apple.com <http://bugreport.apple.com/> including a sample app showing that behavior.
Will do. I have a commit from while it was in that state, and this is a small test app.
I was able to work around the problem by moving the reloadRows call to after -endUpdates. Of course I had to modify the row numbers to the post-insert/delete/move values. It even seems to merge the animations together seamlessly.
—Jens
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden