ealbizzati
ealbizzati

Reputation: 11

How to efficiently use blur effect ios

I’m currently working on an iOS App. As for usual, on the first launch we have a tutorial. The ViewController that is shown after the tutorial (either you skip it or not) is login screen view controller. The background of this VC is a blurred image. And to get the blur effect I’m using UIImage+ImageEffects.h.

It seems to take quite a long time (about 5 seconds) to load my VC. But if I comment the line with the blur effect that works like a charm. Do I have anyway of working around this problem? Of course, since the image is static, I have considered using an already blurred image. But on other places in my app I’m gonna use blur effects too. So, I'd like to know if there is a more efficient alternative.

I have seen the question related:

iOS: How to efficiently blur an image? but it didn't help me.

Upvotes: 0

Views: 383

Answers (1)

Ankit Thakur
Ankit Thakur

Reputation: 4749

I had shared the code for blur effect, you refer the same. How To Add Visual Effect Views Blur On All Views Storyboard iOS?

It is working on iOS 7 and above.

Upvotes: 0

Related Questions