如何阻止导航/标签栏控制器 5 秒?
我有 ATMhud。我正在显示带有进度条的平视显示器。那我想下载实现。
但用户可以返回到之前的视图并停止实现。
我尝试推动“推动黑色视图”,但我只覆盖当前视图,没有导航/标签栏。
在实现完成之前,我如何阻止单击所有内容?
I have ATMhud. I' m showing hud with progress bar. I want to download actualization then.
But user can back to previous view and stop actualization.
I' m tried push "push black view", but i only cover current view without navigation/tabar.
How i can block clicking everything, before actualization finish?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解您的问题,您希望阻止用户与您的视图交互,直到加载过程完成。您可以为此设置视图 userInteractionEnabled 属性。
当您在加载节目时设置
self.view.userInteractionEnabled = NO
,当您的进程完成后
self.view.userInteractionEnabled = YES
这样您就可以防止用户在流程进行时在您视图的任何位置进行交互。
希望有帮助。
If I understood your question correctly, you want to prevent user to interact with your view till your loading process is finished. You can set Views userInteractionEnabled property for that.
When you go for loading show at that moment set
self.view.userInteractionEnabled = NO
and after when your process is finished
self.view.userInteractionEnabled = YES
so this way you can prevent user to interact anywhere on your view while process is undergoing.
Hope it helps.