GithubHelp home page GithubHelp logo

ios-blur's Introduction

#iOS-blur

In iOS 7 a new view is shown in several places that is transparent and has a blur on it. Sadly Apple hasn't given us a proper API to use a similar view.

Apple gave us some sample code at WWDC that can take an UIImage and add blur to it. It looks great, but isn't as cool as a view that adds blur to the views behind it in realtime.

So after 3 and a half cups of coffee I came up with a brilliant and simple idea. It does, however, only work for iOS 7.

It seems Apple are rejecting Apps that use this code, so use with caution. Read more in this issue: JagCesar#25

  • Note that I've changed the name of the class, seems Apple are simply looking for the class AMBlurView. The new class name is JCRBlurView

##Screenshot Screenshot

##How is it done?

It's a real simple solution. I simply took a UIToolbar, placed it as a subview and voila!

##Awesome! So, how do I use it?

Simply copy the class JCRBlurView to your project, initialise it, set a frame and add it to your view. Voila!

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

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

ios-blur's People

Contributors

jagcesar avatar orta avatar goonzoid avatar zeveisenberg avatar overboming avatar edlea avatar darkfunction avatar westerlund avatar

Watchers

James Cloos avatar Gokhan Gultekin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.