Since iOS 8 Apple provided easier way to make blur. But can i animate its appearance?
CSDTimelineCell* headerCell = (CSDTimelineCell*)[self.timelineTabel cellForRowAtIndexPath:self.headerIndexPath];
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
UIVisualEffectView *bluredEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
[bluredEffectView setFrame:headerCell.bounds];
[bluredEffectView setHidden: YES];
[headerCell addSubview:(UIView *)bluredEffectView];
[UIView transitionWithView:bluredEffectView
duration:3
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{
bluredEffectView.hidden = NO;
} completion:nil];
Setting 0 alpha value is deprecated for this class. Any suggestions?