3
应用程序崩溃是由于这个原因-[NSConcreteValue doubleValue]: unrecognized selector sent to
应用程序崩溃: - [NSConcreteValue的doubleValue]无法识别选择
下面的代码是在我的项目使用,我搜索非常,我得到应有的原因进行改造,但如果我更换transform.scale它然后动画改变 帮助我!
[viewContent.layer addAnimation:[self getShakeAnimation] forKey:@"transform.scale"];
- (CAAnimation*)getShakeAnimation
{
CAKeyframeAnimation *animation = [CAKeyframeAnimation animation];
animation.values = [NSArray arrayWithObjects:
[NSValue valueWithCATransform3D:CATransform3DMakeRotation(M_PI_2, 0.0f, 1.0f, 0.0f)],
[NSValue valueWithCATransform3D:CATransform3DMakeRotation(M_PI, 0.0f, 0.0f, 0.0f)],
[NSValue valueWithCATransform3D:CATransform3DMakeRotation(M_PI * 2, 0.0f, 1.0f, 0.0f)],nil];
animation.duration = 0.8f;
animation.delegate = self;
return animation;
}
有没有任何问题,你的代码..它工作正常 – Rajneesh071
你找到解决办法吗? –