ios - UIBlurEffect is always nil -
i've been trying add blur effect app , upon debugging using breakpoints, uiblureffect variable nil.
following code using:
uiblureffect *effect = [[uiblureffect alloc] init]; effect = [uiblureffect effectwithstyle:uiblureffectstyledark]; uivisualeffectview *bluredview = [[uivisualeffectview alloc] initwitheffect: effect]; bluredview.frame = self.view.bounds; [self.view addsubview:bluredview];
i have tried couple different things, example instead of alloc , init uiblureffect, directly using follows:
uiblureffect *effect = [uiblureffect effectwithstyle:uiblureffectstyledark];
it still set nil. there import i'm missing? have imported uikit in .h file 'effect' nil reason.
if has experience same, appreciate if share experience.
any on matter great! in advance!
are running on ios 7? uiblureffect available on ios 8 , above.
Comments
Post a Comment