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]
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]
转载于:https://www.cnblogs.com/tongyuling/p/7217681.html