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.
[SVProgressHUD dismiss]不显示就可以打电话吗?我想这样做的原因是因为我希望 HUD 在视图消失时总是消失。
[SVProgressHUD dismiss]
没关系,只要它不崩溃 LOL。应该没问题,而且无论如何它都不会删除整个应用程序或删除一些关键代码。
从字面上看,现在只是试试看。
也许您可以检查是否正在显示 SVProgressHUD。
所以你的代码viewWillDisappear:看起来像
viewWillDisappear:
if([SVProgressHUD isVisible]) [SVProgressHUD dismiss];