Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以让 MBProgressHud 只在一个选项卡中处于活动状态?目前,当它在最高视图中运行时,选项卡和 UI 的其余部分没有响应。
是的,有 - 只需将其添加到该选项卡的根视图控制器。
通常,这是一个导航控制器,所以你可以这样做:
[self.navigationController.view addSubview:self.myProgressHUD];
或者,如果您没有使用导航控制器,请将其直接添加到选项卡中显示的视图控制器的视图中。
当我加载 MBProgressHUD 时,我通常只在 self.view 上调用它,它仍然允许我在运行时切换选项卡。