ios - Remove blur effect - ObjC -


i'm adding blur effectt view this:

uiblureffect *blureffect = [uiblureffect effectwithstyle:uiblureffectstyledark]; uivisualeffectview *blureffectview = [[uivisualeffectview alloc] initwitheffect:blureffect]; [blureffectview setframe:self.view.bounds]; [self.view addsubview:blureffectview]; 

but how can disable/remove blur?

since uivisualeffectview subclasses uiview, added visual effect view self.view subview hide (the uiview hidden property) or remove subviews.

in case, add instance variable references blureffectview in view, can set hidden property true or false if need be.


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -