就像标题一样。 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"];
答案 0 :(得分:2)
是的,它是私密的。如果它是公共的,那么会在QuartzCore头文件中为它定义一个常量,名为kCATransitionRipple
。没有常数=不公开。