iOS开发技巧iOS开发精进iOS Developer

毛玻璃效果

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];
上一篇下一篇

猜你喜欢

热点阅读