ios - Reset UITableViewCell position -


-(nsarray *)tableview:(uitableview *)tableview editactionsforrowatindexpath:(nsindexpath *)indexpath {     course *c = self.courses[indexpath.row];     uitableviewrowaction *button = [uitableviewrowaction rowactionwithstyle:uitableviewrowactionstyledefault title:@"  -  " handler:^(uitableviewrowaction *action, nsindexpath *indexpath)                                     {                                         [c remove];                                         [tableview beginupdates];                                         [tableview reloadrowsatindexpaths:@[indexpath] withrowanimation:uitableviewrowanimationnone];                                         [tableview endupdates];                                     }];     button.backgroundcolor = [uicolor red];     return @[button]; }  - (void)tableview:(uitableview *)tableview commiteditingstyle:(uitableviewcelleditingstyle)editingstyle forrowatindexpath:(nsindexpath *)indexpath {     // need implement method or nothing work  } - (bool)tableview:(uitableview *)tableview caneditrowatindexpath:(nsindexpath *)indexpath {     return yes; //tableview must editable or nothing work... } 

how reset position of cell after action has been pressed? i'm reloading cell ends giving cell jumpy animation.


Comments

Popular posts from this blog

Multilayer CSV to filtered excel -

Listboxes in c# -

ios - Why must I define variables twice in the Header file? -