5

I have a view called componentsView that overlays mkmapview. I thought it would be cool to have this view transparent with a blur effect. So in my viewDidLoad method I typed:

let blur = UIBlurEffect(style: UIBlurEffectStyle.Light)
let blurView = UIVisualEffectView(effect: blur)
blurView.frame = self.view.bounds
blurView.autoresizingMask = [.FlexibleWidth, .FlexibleHeight]
componentsView.insertSubview(blurView, atIndex: 0)

and that works, it blurs the map behind it. But the map is still colorful - is there a way of making it black and white? currently my panel has a clear color and I tried setting its tint color to black but that didn't work...

user3766930
  • 4,929
  • 9
  • 38
  • 91

0 Answers0