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

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -