实现毛玻璃效果
2022-03-13 本文已影响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];