ios - Animate UITableViewCells to new position AFTER deletion animation is complete -


I have found a UTTable VV that allows users to delete rows by swiping them to the left (like the app clean very ). My point is that all the UITableViewCells below are being animated to their new frame while the animation of the deleted cell is happening. I want to be after after the animation to finish the deleted cell.

My code:

  // start updating table [CATransaction start]; [Catera Setting Animation Distortion: JTTVViewerConstruction Period]; [Cater Season Settlement Block: ^ {[Self. Spreadtable Reload Data]; }]; [Table view start update]; If (state == JTTableViewCellEditingStateLeft) {[self.list.spendrItems Remove ObjectIndAndx: indexPath.row]; // !! Animation is here !! [Remove tableviewRATI and XPPath: [NSARRAOIJject: IndexPath] with animation: UITTualViewer Animation Left]; } [Table view end update]; [Catransens Cameat]; [TablesView performer: @Selector (reloadViewsblogsindexpace) with object: Della after IndexPath: JTTVViewerignation period * 2];   

I am also using it.

Any ideas about how to achieve this?

It was understood that anyone else is interested ... .... in two ways in this way

Epineach # 1 (Wrap the animation block):

  [UIVive Animation: 0.25 Animation: ^ {[( JT Transmembrable Tablet Vixel *) [Self. Spandarabal cellferuateindpepe: indexpath] contentviews] setx: -320]; } Closing: ^ (Bulged) {{self.list.spendrItems} Remove ObjectAut Index: IndexPath.ro]; [Remove tableviewRATI and XPath: [NSARRARIIJject: IndexPath] with RO Animation: UITTViewView AnimationNone]; }];  

Approach # 2 (Heir to UITableView):

Override the animation like this: < / P>

  - (zero) Insert illuminationEntaxpath: (NSERRE *) Randomization with indexpath: (UITABViewView Animation) for animation {Index in index (indexIn indexpath) {UITableViewCell * cell = [self-cellularoindexxpath: indexpath]; [Cell setframe: CGRactack (320, cell.frame.organ., Cell.frame.im.width, cell.frame.size.height)]; [UIView startup permissions: zero reference: zero]; [UIView Set Animation Duration: 1]; [Cell set frame: CGRactam (0, cell.frame.organ, cell.frame.im.width, cell.frame.size.height)]; [UIView commitAnimations]; }   

}

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -