0
Я пытаюсь выполнить быстрое и грязное «размытие», применяя растр к CALayer. В документации CA говорится, что shouldRasterize является анимированным, но я не получаю анимацию. Код ниже:Core Animation: растровая анимация
CABasicAnimation* blurAnimation;
blurAnimation = [CABasicAnimation animationWithKeyPath:@"rasterize"];
blurAnimation.removedOnCompletion = NO;
blurAnimation.autoreverses = YES;
blurAnimation.duration = 3.0f;
blurAnimation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
blurAnimation.repeatCount = 20; // HUGE_VALF;
blurAnimation.fromValue = [NSNumber numberWithFloat:0.3f];
blurAnimation.toValue = [NSNumber numberWithFloat:1.0f];
[theCheck setShouldRasterize:YES];
// Add animation to the layer and make it so
[theCheck addAnimation:blurAnimation forKey:nil];
Спасибо! Успех! – MichaelG