ios - Batch deleting all rows left are going left and up instead -
i want delete rows in tableview uitableviewrowanimationleft rows not going left there going twords left top corner instead. heres code:
int aux = [datasource count]-1; nsmutablearray *indexpaths = [nsmutablearray array]; for(int = aux; i>=0; i--) { nsindexpath *anindexpath = [nsindexpath indexpathforrow:i insection:0]; [indexpaths addobject:anindexpath]; } [self.view layoutifneeded]; [table beginupdates]; [table deleterowsatindexpaths:indexpaths withrowanimation:uitableviewrowanimationleft]; [datasource removeallobjects]; [table endupdates];
what doing wrong? want cels animate left.
in code use animation top:
[table deleterowsatindexpaths:indexpaths withrowanimation:uitableviewrowanimationtop];
change left instead.
[table deleterowsatindexpaths:indexpaths withrowanimation:uitableviewrowanimationleft];
Comments
Post a Comment