美文网首页
 毛玻璃

 毛玻璃

作者: 轻云_ | 来源:发表于2016-10-14 18:32 被阅读27次
        //毛玻璃测试1
        UIToolbar *toolbar = [[UIToolbar alloc]         initWithFrame:CGRectMake(, , bgImgView.frame.size.width*., bgImgView.frame.size.height)];
        toolbar.barStyle = UIBarStyleBlackTranslucent;
        [bgImgView addSubview:toolbar];
    
        //毛玻璃测试2
        let blur = UIBlurEffect(style: UIBlurEffectStyle.Dark)
        let effectiview = UIVisualEffectView(effect: blur)
        effectiview.frame = CGRect(x: 0, y: 0, width: obj.bgImage.frame.size.width, height: obj.bgImage.size.height)
        effectiview.alpha = 0.7
        obj.bgImage.addSubview(effectiview)

    相关文章

      网友评论

          本文标题: 毛玻璃

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