您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页关于cell滑动酷炫动画

关于cell滑动酷炫动画

来源:二三四教育网

-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {

CATransform3D rotation;

rotation = CATransform3DMakeRotation( (90.0*M_PI)/180, 0.0, 0.7, 0.4);

rotation.m44 =  1.0/ -600;

//阴影

cell.layer.shadowColor = [[UIColor blackColor]CGColor];

//阴影偏移

cell.layer.shadowOffset = CGSizeMake(10, 10);

cell.alpha = 0;

cell.layer.transform = rotation;

//锚点

cell.layer.anchorPoint = CGPointMake(0.5, 0.5);

[UIView beginAnimations:@"rotation" context:NULL];

[UIView setAnimationDuration:0.8];

cell.layer.transform = CATransform3DIdentity;

cell.alpha = 1;

cell.layer.shadowOffset = CGSizeMake(0, 0);

[UIView commitAnimations];

}

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务