iOS开发_UITableViewCell动画

- (void)tableView:(UITableView *)tableView
  willDisplayCell:(UITableViewCell *)cell
forRowAtIndexPath:(NSIndexPath *)indexPath {
    
    cell.transform = CGAffineTransformMakeTranslation(0, 10);
    [UIView animateWithDuration:0.2 animations:^{
        cell.transform = CGAffineTransformIdentity;
    }];
}
posted @ 2022-11-10 17:51  CH520  阅读(8)  评论(0编辑  收藏  举报