iOS 系统自带磨玻璃代码

   UIBlurEffect * b = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];

    UIVisualEffectView * v = [[UIVisualEffectView alloc]initWithEffect:b];

    v.alpha = 0.5;

    v.frame = (CGRect){100,100,100,100};

    [self.view addSubview:v]

posted @ 2017-07-21 14:57  tongyuling  阅读(381)  评论(0编辑  收藏  举报