Blur effect, using Fxblurview this third-party library makes it easy to implement this feature.
Effect:
Here's a look at the implementation, VIEWCONTROLLER.M
#import "ViewController.h" #import "FXBlurView.h" @interface Viewcontroller () @end @implementation viewcontroller-( void) Viewdidload { [super viewdidload]; Additional setup after loading the view, typically from a nib. UIImage *im = [UIImage imagenamed:@ "changmen.jpg"]; Uiimageview *imageview = [[Uiimageview alloc] initwithimage:im]; Imageview.frame = CGRectMake (0, 0, im.size.width, im.size.height); [Self.view Addsubview:imageview]; Fxblurview *fxview = [[Fxblurview alloc] Initwithframe:cgrectmake (0, N, a)]; Fxview.dynamic = NO; Fxview.blurradius = +; Fxview.tintcolor = [Uicolor clearcolor]; [Self.view Addsubview:fxview]; }
Code Download: Http://pan.baidu.com/s/1o64w1YE
iOS blur effect using third-party libraries Fxblurview