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条)