0

So I have learned to make a blurred effect according to post link. But that post does not issue how to make a blurred effect that also covers the TabBarController and NavigationController elements.

How can I make a blurred effect that covers the whole screen, including the TabBarController and NavigationController elements?

Community
  • 1
  • 1
iSebbeYT
  • 1,441
  • 2
  • 18
  • 29

1 Answers1

4

It's doing exactly what you ask right now, which is covering the entire view. That view, however, is of a child UIViewController, which has its real estate managed by a parent view controller. Only this parent has its view covering the entire screen. So in the case of embedding in a UINavigationController, you'd do instead:

blurEffectView.frame = self.navigationController!.view.bounds
self.navigationController!.view.addSubview(blurEffectView)
BaseZen
  • 8,650
  • 3
  • 35
  • 47
  • 1
    Oh, ofc! Perfect Answer! Simple solutions is sometimes difficult to see while you'r still a noob! ;) Ty! – iSebbeYT Aug 07 '16 at 21:42