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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -