首页 > 其他 > 详细

UITableViewCell出现动画

时间:2018-11-24 17:50:40      阅读:154      评论:0      收藏:0      [点我收藏+]

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;
    }];
    
}

 

UITableViewCell出现动画

原文:https://www.cnblogs.com/StevenHuSir/p/10012707.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!