UITableView sliding animation + FPSLabel, iosuitableview sliding
Mainly uses the tableView proxy method
When the row is to be displayed
-(Void) tableView :( UITableView *) tableView willDisplayCell :( UITableViewCell *) cell forRowAtIndexPath :( nonnull NSIndexPath *) indexPath
Code:
Cell. contentView. alpha = 0.3; CGAffineTransform transformScale = CGAffineTransformMakeScale (0.3, 0.8); // scale CGAffineTransform transformTranslate = resize (0.5, 0.6); // change the cell location. contentView. transform = CGAffineTransformConcat (transformScale, transformTranslate); [tableView bringSubviewToFront: cell. contentView]; [UIView animateWithDuration :. 4f delay: 0.05 options: UIViewAnimationOptionAllowUserInteraction animations: ^ {cell. contentView. alpha = 1; // clear transform cell. contentView. transform = CGAffineTransformIdentity;} completion: nil];
:
Github connection:
Https://github.com/WuJiForFantasy/CellAnimation