ios8之后实现界面毛玻璃效果

当要在一个imageView上加一个毛玻璃效果时

//创建毛玻璃效果
UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleLight];
     
//创建毛玻璃视图  
UIVisualEffectView *visualView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; 
visualView.frame = imageView.bounds;
[imageView addSubview:visualView];

你可能感兴趣的:(ios8之后实现界面毛玻璃效果)