正如标题所示,rippleEffect
是CATransition
私有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"];
字符串
1条答案
按热度按时间iswrvxsc1#
是的,它是私有的。如果它是公共的,那么在QuartzCore头文件中会为它定义一个常量,名为
kCATransitionRipple
。没有常量=不公开。