In my application, I want to apply a blur effect on uiview.So, how can I achieve a blur effect. I tried the code below:
UIGraphicsBeginImageContext(scrollview.bounds.size); [scrollview.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();
But the problem is using this code. when the blur effect is applied, the viewing time is short.
ios objective-c uiview blur uiblureffect
Monika patel
source share