UITableViewCell出现动画

UITableViewCell出现动画

// 当cell 将要显示的时候调用
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
    
    cell.transform = CGAffineTransformMakeTranslation(self.view.width, 0);
    
    [UIView animateWithDuration:0.5f animations:^{
        cell.transform = CGAffineTransformIdentity;
    }];
    
}

 

posted @ 2018-11-24 17:04  淡然微笑_Steven  阅读(546)  评论(0编辑  收藏  举报