LBBlurredImage-master

LBBlurredImage是一个继承自UIImageView轻而易举使图像模糊的项目你将仅仅用一行代码来创建一个神奇的模糊效果Copy file This code must be used with deploy target 6 0+ and under ARC If your code doesn"t use ARC you can mark this source with the compiler flag fobjc arc Just grab the two file named UIImageView+LBBlurredImage {h m} and UIImage+ImageEffects {h m} in the Additions group into your project and link with Accelerate framework #import "UIImageView+LBBlurredImage h" where you need it CocoaPods You can use CocoaPods to manage your dependencies and install LBBlurredImage Follow the instructions on the CocoaPods site to install the gem and add pod "LBBlurredImage" to your Podfile Use [self imageView setImageToBlur:[UIImage imageNamed:@"example"] blurRadius:kLBBlurredImageDefaultBlurRadius completionBlock:^ { NSLog @"The blurred image has been set" ; }]; 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 has been generated and set to the UIImageView The code is provided with an example project if you want to see the class in actions ">LBBlurredImage是一个继承自UIImageView轻而易举使图像模糊的项目你将仅仅用一行代码来创建一个神奇的模糊效果Copy file This code must be used with deploy target 6 0+ and under ARC If your code doesn"t use ARC you can mark this source with the compile [更多]
zip
LBBlurredImage-master.zip 预估大小:23个文件
folder
LBBlurredImage-master 文件夹
folder
LBBlurredImage.xcodeproj 文件夹
file
project.pbxproj 16KB
file
LBBlurredImage.podspec 774B
file
LICENSE 1KB
folder
Resources 文件夹
file
SimulatorScreenshot.png 105KB
folder
LBBlurredImage 文件夹
file
UIImageView+LBBlurredImage.m 2KB
file
main.m 342B
file
Default.png 6KB
file
LBBlurredImage-Info.plist 1KB
file
Default-568h@2x.png 18KB
file
LBAppDelegate.h 374B
file
UIImage+ImageEffects.h 5KB
file
LBViewController.h 285B
file
UIImage+ImageEffects.m 13KB
file
example.png 1.01MB
file
LBViewController.m 788B
file
Default@2x.png 16KB
file
UIImageView+LBBlurredImage.h 1KB
file
LBBlurredImage-Prefix.pch 311B
file
LBAppDelegate.m 2KB
folder
en.lproj 文件夹
file
LBViewController.xib 19KB
file
InfoPlist.strings 45B
file
.gitignore 373B
file
README.md 2KB
zip 文件大小:1.14MB