Skip to content

Instantly share code, notes, and snippets.

@kazukitanaka0611
Created May 24, 2016 03:23
Show Gist options
  • Save kazukitanaka0611/50e7feb46237132d78469ad2c8eb45c7 to your computer and use it in GitHub Desktop.
Save kazukitanaka0611/50e7feb46237132d78469ad2c8eb45c7 to your computer and use it in GitHub Desktop.
UIImage+ImageEffects.h
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
UIImage *blurredImage = [[UIImage imageNamed:@"ball"] applyBlurWithRadius:1.5
tintColor:nil
saturationDeltaFactor:1.0
maskImage:nil];
dispatch_async(dispatch_get_main_queue(), ^{
_ballImageView.image = blurredImage;
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment