Overlay a view over whole screen, when using UITabBarController?

后端 未结 5 583
渐次进展
渐次进展 2021-02-08 02:13

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)

5条回答
  •  醉酒成梦
    2021-02-08 02:36

    You could attach your new view to your window directly.

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

提交回复
热议问题