nicklockwood / FXBlurView

[DEPRECATED]
Other
4.94k stars 713 forks source link

Blur radius and UIView animation completion block #58

Open romsi opened 10 years ago

romsi commented 10 years ago

I use blur radius in UIView animation block (e.g your sample code "AnimatedBlurExample"). My problem is the completion block of [UIView animateWithDuration:completion:] is never called.

- (IBAction)toggleBlur
{
    if (self.blurView.blurRadius < 5)
    {
        [UIView animateWithDuration:0.5 animations:^{
            self.blurView.blurRadius = 40;
        } completion:^(BOOL finished) {
            NSLog(@"NEVER CALLED");
        }];
    }
    ...
}

This sample come from you sample code "AnimatedBlurExample".