The UI design of the frosted glass has been very popular in the development of mobile phones, and in the previous development it was generally used in a Fxblurview packaged view class on GitHub, which can be applied directly to the control, and the updated Uiblureffect class and UIVISUALEFFEC after IOS 8 The Tview class makes this special effect application more convenient and efficient.
It is also very easy to use, Uiblureffect class is to set the type of glass special effect, the Uivisualeffectview class is created with the last class object, the rest is the same as the normal view control, such as the use of the same, with the code case:
Create the desired type of frosted glass effect
Uiblureffect *blureffect = [Uiblureffect effectwithstyle:uiblureffectstylelight];
Frosted Glass View
Uivisualeffectview *effectview = [[Uivisualeffectview alloc] initwitheffect:blureffect];
Add to a control that will have a frosted glass effect
Effectview.frame = Self.imageV.bounds;
[Self.imagev Addsubview:effectview];
Set Blur transparency
Effectview.alpha =. 8f;
If you want to use the Fxblurview on GitHub, it's download path: Https://github.com/nicklockwood/FXBlurView.
IOS 8 system comes with blureffect frosted glass effect