1 // iOS 毛玻璃效果: 2 UIVisualEffectView *bgView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]]; 3 bgView.alpha = 0.9f; 4 bgView.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height); 5 [self.view addSubview:bgView];