+ (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) {
}];
}
}
-
Notifications
You must be signed in to change notification settings - Fork 115
alanwangmodify/TableViewAnimationKit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
⏱ TableView Animation ,move your tableView
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published