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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -