UIVisualEffectView


UIBlurEffect

    • 只支持到iOS 8.0+。系统给予的一个自动生成滤镜的方法
       UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]];
       effectView.frame = img.bounds;
      [img addSubview:effectView];
      

       

posted @ 2016-07-27 15:27  懒懒初阳  阅读(317)  评论(0编辑  收藏  举报