deleteRow/insertRowAfter issues (TableView)

You must Login before you can answer or comment on any questions.

Hi guys

I'm having serious issues with TableView's.

Completely randomly, I get this error:

*** Assertion failure in -[UITableView _endCellAnimationsWithContext:], /SourceCache/UIKit_Sim/UIKit-1914.84/UITableView.m:878

It occurs sometimes when I delete a row using deleteRow and right after use insertRowAfter.

I was told you can't animate a TableView other than one at a time but why not? I really need this to work in order to submit my app.

Any help is appreciated.

— asked 9 months ago by John Johnson
1 Comment
  • some code will be nice. its really hard to help if we dont know what you are doing

    — commented 9 months ago by Arian Caraballo

2 Answers

providing some sample code might help us to provide a better answer, but my suggestion is to provide a slight delay between the animations.

— answered 9 months ago by Aaron Saunders
answer permalink
4 Comments
  • Hi Aaron. I tried using a delay between the animations.. It makes it better and causes the error to shown less but it's still there. There must be some way to allow two animations at the same time.

    — commented 9 months ago by John Johnson

  • you cannot have two animations going on at the same time, it just doesnt end well, you can also try ising the animation callback to trigger the start of the next animation

    http://docs.appcelerator.com/titanium/2.1/#!/guide/Animation

    — commented 9 months ago by Aaron Saunders

  • How do I get a callback on deleteRow?

    — commented 9 months ago by John Johnson

  • Show 1 more comment

I'm getting this assertion failure on SDK 3.0.2.GA simply by doing table.setData([]). Is anyone else finding that?

Your Answer

Think you can help? Login to answer this question!