How to apply blur to a UIView?

blur, image-processing, ios, uiview

Solution

Ever since the release of iOS 7, This question has been getting a lot of hits and I thought I should follow up on what I ended up doing.

I personally blurred the picture at the time with photoshop, but there are many great third party libraries available that do dynamic and static blurring, here are a couple:

- This ingenious library takes a layer from `UITabBar` and applies to any view to get iOS 7's native blur: https://github.com/JagCesar/iOS-blur/

- This library is a real time blurring library that live blurs any view below it: https://github.com/alexdrone/ios-realtimeblur (as pointed out by qegal)

- Another one that does the same realtime blur: https://github.com/nicklockwood/FXBlurView

- This Library is the one I personally use and is Great, allowing you to set the tint color among other settings: https://github.com/ivoleko/ILTranslucentView

I wanted to post this because you no longer need to take screenshots of individual frames or screen.

iOS 8: With the coming release of iOS 8, Apple has included a built in blurred `UIView`, `UIVisualEffectView` (https://developer.apple.com/documentation/uikit/uivisualeffectview)

Problem

Right now I am building an iPhone app that requires blurring an entire UIView. How can I achieve this? I have seen this framework, but I don't think that works with UIView. Is there an alternate way to blur an UIView? UPDATE: Check for my updated answer below, adding more relevance with the advent of iOS 7 and iOS 8.

Original source