1.
Uiimageview *imageview = [[Uiimageview alloc]initwithimage:[uiimage imagenamed:@"img_0004"]]; Imageview.frame= CGRectMake (0,0, the,720); [Self.view Addsubview:imageview]; //add Gaussian blur under iOS8, there are 3 types of blurUivisualeffectview *effectview =[[Uivisualeffectview Alloc]initwitheffect:[uiblureffect Effectwithstyle:uiblureffectstyledark]]; Effectview.frame= CGRectMake (0, -, the, -); [ImageView Addsubview:effectview]; //UIButton *btn =[UIButton Buttonwithtype:uibuttontypesystem]; Btn.frame= CGRectMake (Ten, -, -, +); Btn.backgroundcolor=[Uicolor Cyancolor]; [BTN Settitle:@"btn"Forstate:uicontrolstatenormal]; [Effectview.contentview addsubview:btn];
2.
Uiimageview *showview = [[Uiimageview alloc] Initwithframe:cgrectmake (0, 0 , 100 , 100 = [UIImage imagenamed:@ " img_0003 // captured view, set no transparency to 0,yes transparency of 1 UIView *snap1 = [ShowView Snapshotviewafterscreenupdates:no]; Snap1.center = Self.view.center; [Self.view ADDSUBVIEW:SNAP1]; NSLog ( @ " alpha=%f ", Snap1.alpha);
Add Gaussian blur, iOS7 create snapshot under iOS8