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
Post a Comment