Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexdrone/ios-realtimeblur
Multipurpose real-time blur view for iOS6+
https://github.com/alexdrone/ios-realtimeblur
Last synced: 3 months ago
JSON representation
Multipurpose real-time blur view for iOS6+
- Host: GitHub
- URL: https://github.com/alexdrone/ios-realtimeblur
- Owner: alexdrone
- License: mit
- Created: 2013-07-03T12:28:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-26T09:47:21.000Z (over 10 years ago)
- Last Synced: 2024-06-24T01:40:26.787Z (5 months ago)
- Language: Objective-C
- Homepage:
- Size: 603 KB
- Stars: 951
- Watchers: 47
- Forks: 107
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
ios-realtimeblur
================Real-time blur view, like in iOS 7. (deployable on iOS5, 6 and 7)
[![IMAGE ALT TEXT HERE](http://img.youtube.com/vi/jVtbBU92suk/0.jpg)](http://www.youtube.com/watch?v=jVtbBU92suk)
Usage
--------------------• • • Make sure you link to the Accelerate.framework • • •
Instantiate it and use it as any other view :)
//Creates a live blur view
UIERealTimeBlurView *blurView = [[UIERealTimeBlurView alloc] initWithFrame:CGRectMake(60, 110, 200, 200)];
[self.view addSubview:blurView];
You can add all the subviews you want to it...
UIImageView *speakerImage = [[UIImageView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)];
speakerImage.image = [UIImage imageNamed:@"speaker"];
[blurView addSubview:speakerImage];If you want to have a static rendering (useful if your view is presented modally) just set
blurView.renderStatic = YES;
You can set the tint color of the view via the tint property (still TODO: use iOS7 tintColor ;)) - The default one is clearColor
In UIERealTimeBlurView.h you can set the fps by tweaking the global var
extern const CGFloat UIERealTimeBlurViewFPS = 30.f;
Credits
--------------------If you use this component in your app, please add some credits :)
The box blur algorithm is from this beautiful blog post:
http://indieambitions.com/idevblogaday/perform-blur-vimage-accelerate-framework-tutorial