我正在尝试实现这样的模糊效果:

正如您所看到的,背景图像是专辑图片,但它是超级模糊的。我试过使用苹果UIImage+ImageEffects类别,但它没有接近我需要的模糊量。有没有人知道如何做到这一点,或者是否有任何库可以实现这种效果?
发布于 2014-07-03 12:49:15
我使用LBBlurredImage实现了终极模糊效果
self.backgroundImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"bg"]];
self.backgroundImageView.contentMode = UIViewContentModeScaleAspectFill;
[self.backgroundImageView setImageToBlur: [UIImage imageNamed:@"bg"] blurRadius: 50 completionBlock: nil];
[self.view addSubview:self.backgroundImageView];Swift:
let backgroundImageView = UIImageView(image: UIImage(named: "bg"))
backgroundImageView.contentMode = .ScaleAspectFill
backgroundImageView.setImageToBlur(UIImage(named: "bg"), blurRadius: 50, completionBlock: nil)
self.view.addSubview(backgroundView)https://stackoverflow.com/questions/21055663
复制相似问题