UIBlurEffect how to unable real time rendering

470 Views Asked by At

With iOS 8 SDK it's really easy to add a blur effect on a view.
On a UITableView I've a UIVisualEffectView with UIBlurEffect on every cells. When I scroll cells there is a little "lag" on the views. I think it's because UIBlurEffect is rendering in real-time.

Is it possible to unable this real-time rendering ? I would render the view just one time and after use it like a normal view. Because the image behind the UIVisualEffectView never change.

Before iOS 8 I used FXBlurView and it has this option. (github project)

1

There are 1 best solutions below

1
On

You can create a static blur using the category UIImage+ImageEffects.m and the methods therein. It should be faster than using UIBlurEffect on older devices.

See this post for more: https://stackoverflow.com/a/17138341/2670912