我想通过以下方式使用MBProgressHUD
:在我的方法中,我调用多个服务器和其他需要显示HUD的操作。我想知道在这些特定操作完成之前,“保持”主线程的最佳方式是什么。主线程中的MBProgressHUD问题。
例如:
method {
MBProgressHUD (action 1) //don't move on until this is done
//some other code...
MBProgressHUD (action 2)
//some other code...
}
我非常新到iOS很抱歉,如果这是太简单了。谢谢。
我看过。恐怕没什么帮助,但是谢谢。 – moshikafya