毛玻璃效果
2016-03-27 本文已影响167人
方同学哈
UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.frame];
imageView.image = [UIImage imageNamed:@"psb.jpg"];
[self.view addSubview:imageView];
UIVisualEffectView *blurView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight]];
blurView.frame = imageView.frame;
[self.view addSubview:blurView];