码迷,mamicode.com
首页 > 移动开发 > 详细

iOS View 模糊效果(毛玻璃)

时间:2014-04-30 02:03:09      阅读:729      评论:0      收藏:0      [点我收藏+]

标签:com   http   blog   style   class   div   img   code   java   javascript   log   

相关资料

http://stackoverflow.com/questions/18404907/using-gpuimage-to-recreate-ios-7-glass-effect

http://stackoverflow.com/questions/17036655/ios-7-style-blur-view/17048668#17048668

 

我没有用GPUImge  使用了  FXBlurView which works great on iOS5+

只有两个文件

https://github.com/nicklockwood/FXBlurView

CocoaPods:

bubuko.com,布布扣
-> FXBlurView (1.3.1)
   UIView subclass that replicates the iOS 7 realtime background blur effect, but works on iOS 5 and above.
   pod FXBlurView, ~> 1.3.1
   - Homepage: http://github.com/nicklockwood/FXBlurView
   - Source:   https://github.com/nicklockwood/FXBlurView.git
   - Versions: 1.3.1, 1.3, 1.2, 1.1, 1.0 [master repo]
bubuko.com,布布扣

I added it by using:

bubuko.com,布布扣
FXBlurView *blurView = [[FXBlurView alloc] initWithFrame:CGRectMake(50, 50, 150, 150)];
[self.blurView setDynamic:YES];
[self.view addSubview:self.blurView];
bubuko.com,布布扣
 

iOS View 模糊效果(毛玻璃),布布扣,bubuko.com

iOS View 模糊效果(毛玻璃)

标签:com   http   blog   style   class   div   img   code   java   javascript   log   

原文地址:http://www.cnblogs.com/tangbinblog/p/3695752.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!