How to realize rotation Animation effect with cell
This article mainly introduces "how to achieve rotation animation effects in cell". In daily operation, I believe many people have doubts about how to achieve rotation animation effects in cell. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts of "how to achieve rotation animation effects in cell". Next, please follow the editor to study!
TableView angle rotation animation. GIF
-(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 X cell.layer.shadowColor / Shadow cell.layer.shadowColor = [[UIColor blackColor] CGColor]; / Shadow offset cell.layer.shadowOffset = CGSizeMake (10,10); cell.alpha = 0x cell.layer.transform = rotation / / Anchor cell.layer.anchorPoint = CGPointMake (0.5,0.5); [UIView beginAnimations:@ "rotation" context:NULL]; [UIView setAnimationDuration:0.8]; cell.layer.transform = CATransform3DIdentity;cell.alpha = 1 politics cell.layer.shadowOffset = CGSizeMake (0,0); [UIView commitAnimations];} at this point, the study of "how to achieve rotation animation in cell" is over, hoping to solve everyone's doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!