rippleEffect是私有API吗?IOS

alen0pnh  于 5个月前  发布在  iOS
关注(0)|答案(1)|浏览(79)

正如标题所示,rippleEffectCATransition私有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"];

字符串

iswrvxsc

iswrvxsc1#

是的,它是私有的。如果它是公共的,那么在QuartzCore头文件中会为它定义一个常量,名为kCATransitionRipple。没有常量=不公开。

相关问题