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

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -