使用UITabBarController时覆盖整个屏幕的视图? [英] Overlay a view over whole screen, when using UITabBarController?

查看:155
本文介绍了使用UITabBarController时覆盖整个屏幕的视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在UITabBarController设置中在整个屏幕上叠加HUD风格的透明图形。执行此操作的按钮位于第一个选项卡的屏幕(FirstViewController)中,覆盖图也应覆盖选项卡......这可能吗?

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?

推荐答案

您可以直接将新视图附加到窗口。

You could attach your new view to your window directly.

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

这篇关于使用UITabBarController时覆盖整个屏幕的视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆