Using the core image//Create a picture of a frosted glass
- (UIImage*) Blur: (UIImage*) theimage
{
Cicontext*context = [Cicontextcontextwithoptions:Nil];
Ciimage*inputimage = [CiimageImagewithcgimage: Theimage.Cgimage];
Cifilter*filter = [CifilterFilterwithname:@ "Cigaussianblur"];
[FilterSetValue: InputimageForkey:Kciinputimagekey];
[FilterSetValue:[NSNumbernumberwithfloat:15.0]Forkey:@ "Inputradius"];
Ciimage*result = [FilterValueforkey:Kcioutputimagekey];
Cgimagerefcgimage = [ContextCreatecgimage: ResultFromrect: [Inputimageextent]];
UIImage*returnimage = [UIImageImagewithcgimage: Cgimage];
Cgimagerelease(Cgimage);
returnReturnimage;}
System method, iOS8 above//method One: System method,iOS8and above available
if (!uiaccessibilityisreducetransparencyenabled()) {
Uiblureffect*blureffect = [UiblureffectEffectwithstyle:Uiblureffectstyledark];
Uivisualeffectview*blureffectview = [[UivisualeffectviewAlloc]Initwitheffect: Blureffect];
Blureffectview.frame = _imageview.bounds;
[_imageviewAddsubview:blureffectview]; }
IOS: frosted Glass effect