iOS开发给cell添加动画

iOS开发给cell添加动画

2023年7月14日发(作者:)

iOS开发给cell添加动画直接粘贴到cell⾥边CATransform3Drotation;rotation =CATransform3DMakeRotation( (90.0*M_PI)/180, (90.0*M_PI)/180,0.7,0.4);rotation.m34=1.0/ -600;Color= [[UIColorblackColor]CGColor];Offset=CGSizeMake(10,10);=0;orm= rotation;// Point = CGPointMake(0, 0.5);[UIViewbeginAnimations:@"rotation"context:NULL];[UIViewsetAnimationDuration:0.8];orm=CATransform3DIdentity;=1;Offset=CGSizeMake(0,0);[UIViewcommitAnimations];第⼆种//-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath//{// //设置Cell的动画效果为3D效果// //设置x和y的初始值为0.1;// orm = CATransform3DMakeScale(0.1, 0.1, 1);// //x和y的最终值为1// [UIView animateWithDuration:1 animations:^{// orm = CATransform3DMakeScale(1, 1, 1);//// }];//}

发布者:admin,转转请注明出处:http://www.yc00.com/xiaochengxu/1689264365a226417.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信