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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -