美文网首页
实现毛玻璃效果

实现毛玻璃效果

作者: 不要虚度美好的时光 | 来源:发表于2022-03-13 20:00 被阅读0次
    //实现模糊效果
    UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
    //毛玻璃视图
    UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect];;
    effectView.frame = CGRectMake(0, 0, kScreenWidth, kScreenHeight);
    
    [self.cell_BG_ImageView addSubview:effectView];

相关文章

网友评论

      本文标题:实现毛玻璃效果

      本文链接:https://www.haomeiwen.com/subject/cprddrtx.html