实现毛玻璃效果

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];
上一篇下一篇

猜你喜欢

热点阅读