Skip to content
Blur a UIView
Objective-C Ruby
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
blur Renamed AMBlurView to JCRBlurView Mar 13, 2014
.gitignore Initial commit Jul 1, 2013
LICENCE Added screenshot and License Jul 28, 2013
README.md Fix broken Markdown headings Apr 17, 2017
iOS-blur.podspec New podspec Mar 13, 2014
screenshot.png Added screenshot and License Jul 28, 2013

README.md

iOS-blur

In iOS 7 a new view is shown in several places that is transparent and has a nice blur effect. However Apple hasn't given us a public API to use this amazing view.

Apple gave us some sample code at WWDC that blurs an UIImage object. It looks great, but isn't as cool as a view that blurs the views behind it in realtime.

I needed this in one of my projects, so after some thinking I came up with a brilliant and simple idea. It only works for iOS 7.

Screenshot

Screenshot

How is it done?

I simply took a UIToolbar, placed it as a subview and voila!

Awesome! So, how do I use it?

You just use it as any normal UIView object. I wanted it to be as simple as possible, and I think I've managed to do just that.

To use it you copy JCRBlurView.h and JCRBlurView.m to your project. Make sure to import it, initialise it, set a frame and add it to your view. That's it! :)

JCRBlurView *blurView = [JCRBlurView new];
[blurView setFrame:CGRectMake(0.0f,0.0f,100.0f,100.0f)];
[self.view addSubview:blurView];

If you prefer using Auto Layout that works great too!

What about using it as a cocoapod? It would be SO much easier!

Just add: pod 'iOS-blur' to your Podfile and run pod install

License

iOS-blur is released under the WTFPL-license (see the LICENSE file)

You can’t perform that action at this time.