UIImageView *bgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"XXXXX"]];
bgView.frame = self.view.frame;
UIVisualEffectView *visView = [[UIVisualEffectView alloc] initWithEffect:[UIBlurEffect effectWithStyle:UIBlurEffectStyleLight] ];
visView.frame = self.view.frame;
[self.view addSubview:bgView];
[self.view addSubview:visView];
效果:

原图:

网友评论