當(dāng)要在一個imageView上加一個毛玻璃效果時
//創(chuàng)建毛玻璃效果
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
//創(chuàng)建毛玻璃視圖
UIVisualEffectView *visualView = [[UIVisualEffectView alloc] initWithEffect:blurEffect];
visualView.frame = imageView.bounds;
[imageView addSubview:visualView];