iOS8自带模糊效果

时间:2014-09-19 15:37:45   收藏:0   阅读:287
  
    typedef NS_ENUM(NSInteger, UIBlurEffectStyle) {
    UIBlurEffectStyleExtraLight,
    UIBlurEffectStyleLight,
    UIBlurEffectStyleDark
} NS_ENUM_AVAILABLE_IOS(8_0);


    UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
    UIVisualEffectView *blurEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
    blurEffectView.frame = self.imageView.bounds;
    [self.imageView insertSubview:blurEffectView atIndex:0];
 


未处理效果

bubuko.com,布布扣



UIBlurEffectStyleLight

bubuko.com,布布扣


UIBlurEffectStyleExtraLight

bubuko.com,布布扣


UIBlurEffectStyleDark

bubuko.com,布布扣

原文:http://blog.csdn.net/xietao3/article/details/39398403

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!