+ (void)moveAnimationWithTableView:(UITableView *)tableView {
NSArray *cells = tableView.visibleCells;
for (int i = 0; i < cells.count; i++) {
CGFloat totalTime = 0.4;
UITableViewCell *cell = [tableView.visibleCells objectAtIndex:i];
cell.transform = CGAffineTransformMakeTranslation(-XS_SCREEN_WIDTH, 0);
[UIView animateWithDuration:0.4 delay:i*(totalTime/cells.count) usingSpringWithDamping:0.7 initialSpringVelocity:1/0.7 options:UIViewAnimationOptionCurveEaseIn animations:^{
cell.transform = CGAffineTransformIdentity;
} completion:^(BOOL finished) {
}];
}
}
litterl / tableviewanimationkit Goto Github PK
View Code? Open in Web Editor NEWThis project forked from alanwangmodify/tableviewanimationkit
TableView Animation ,move your tableView
License: MIT License