就像标题一样涟漪效应会影响CATransition private API的类型吗?

CATransition * canimation = [CATransition animation];
[canimation setDelegate:self];
[canimation setDuration:0.5];
canimation.timingFunction = UIViewAnimationCurveEaseInOut;
canimation.fillMode = kCAFillModeBackwards;
canimation.removedOnCompletion = NO;
[canimation setType:@"rippleEffect"];
[card.layer addAnimation:canimation forKey:@"animation"];

最佳答案

是的,它是 private 的。如果它是 public 的,那么在QuartzCore头文件中将为它定义一个常量,名称类似于kCATransitionRipple。无常数=不公开。

10-06 13:36