ios - Table view cell deletion animation not working -



ios - Table view cell deletion animation not working -

-(void)tableview:(uitableview *)tableview commiteditingstyle:(uitableviewcelleditingstyle)editingstyle forrowatindexpath:(nsindexpath *)indexpath { if (editingstyle == uitableviewcelleditingstyledelete) { [self.myarray removeobjectatindex:indexpath.row]; [self.tableview deleterowsatindexpaths:[nsarray arraywithobject:indexpath] withrowanimation:uitableviewrowanimationfade]; } }

changing animation type of other options not create difference, seem same animation every time. i've read due ios 7 bug, deployment target ios 8. ideas?

if (editingstyle == uitableviewcelleditingstyledelete) { if ([self.myarray count] >= 1) { [self.tableview beginupdates]; [self.tableview deleterowsatindexpaths:[nsarray arraywithobject:indexpath] withrowanimation:uitableviewrowanimationfade]; [self.myarray removeobjectatindex:[indexpath row]]; [self.tableview endupdates]; } }

try this

ios objective-c uitableview animation

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -