iOS 8 系统毛玻璃效果

// 图片

UIImageView*imageView = [[UIImageViewalloc] initWithFrame:CGRectMake(0,0,320,480)];[imageView setImage:[UIImageimageNamed:@"001.png"]];

[self.view addSubview:imageView];

// 毛玻璃效果

self.visualEfView= [[UIVisualEffectViewalloc] initWithEffect:[UIBlurEffecteffectWithStyle:UIBlurEffectStyleLight]];

_visualEfView.frame= CGRectMake(0,0,320,480);

_visualEfView.alpha=1.0;

[imageView addSubview:_visualEfView];

你可能感兴趣的:(iOS 8 系统毛玻璃效果)