####App毛玻璃效果
- (void)applicationDidEnterBackground:(UIApplication *)application {
//添加屏幕毛玻璃
UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
self.effectView = [[UIVisualEffectView alloc] initWithEffect:effect];
self.effectView.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
self.effectView.alpha = 0.93;
[self.window addSubview:self.effectView];
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
//移除屏幕毛玻璃
[self.effectView removeFromSuperview];
}
引用了别人的一个demo***gitee.com/liangsenlia…
本篇文章到这里就结束了,愿大家加班不多工资多,男同胞都有女朋友,女同胞都有男朋友。😊