Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chenHongbin/LBBlurredImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

5 Commits

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /