UIImage+ImageEffects设置模糊效果

CALayer *layer = [[CALayer alloc] init];
layer.frame = self.imageView.bounds;
[self.imageView.layer addSublayer:layer];
UIImage *image = [self.imageView.image applyBlurWithRadius:50
tintColor:[UIColor colorWithRed:0 green:1 blue:1 alpha:0.1]
saturationDeltaFactor:2 maskImage:nil];
layer.contents = (__bridge id)(image.CGImage);

你可能感兴趣的:(UIImage+ImageEffects设置模糊效果)