iphoneobjective-ciosuitabbarcontrollerhud

Overlay a view over whole screen, when using UITabBarController?


I want to overlay a HUD-style transparent graphic over the entire screen in a UITabBarController setup. The button to do this is in the first tab's screen (FirstViewController), and the overlay should also cover the tabs... is this possible?


Solution

  • You could attach your new view to your window directly.

    [[[UIApplication sharedApplication] keyWindow] addSubview:myNewView];