Skip to content
LBBlurredImage is an UIImageView category that permit to set an image and make this blurred
Pull request Compare This branch is 24 commits behind lukabernardi:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
LBBlurredImage.xcodeproj
LBBlurredImage
Resources
.gitignore
README.md

README.md

LBBlurredImage

LBBlurredImage is an UIImageView category that permit to set an image and make this blurred.

Here are an example of what you can achieve:

Installation & Use

Installation

  • Just grab the two file named UIImageView+LBBlurredImage.h & UIImageView+LBBlurredImage.m in the Additions group into your project and link with CoreImage.framework .
  • #import "UIImageView+LBBlurredImage.h" where you need it.

Use

[self.imageView setImageToBlur:[UIImage imageNamed:@"example"]
                    blurRadius:kLBBlurredImageDefaultBlurRadius
               completionBlock:^(NSError *error){
                   NSLog(@"The blurred image has been setted");
               }];

The generation of the blurred image is made on a background thread, for this reason a completion block is provided. The completionBlock is dispatched on the main thread when the image was generated and set to the UIImageView.

Something went wrong with that request. Please try again.