当要在一个imageView上加一个毛玻璃效果时
//创建毛玻璃效果
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
//创建毛玻璃视图
UIVisualEffectView *visualView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
visualView.frame = imageView.bounds;
[imageView addSubview:visualView];