вот мой код, но он показывает прогресс. есть ли ошибки в этом коде? пожалуйста, дайте некоторое представление об этом, или укажите ссылку, связанную с этим.
class Approval: UIViewController {
var hud: MBProgressHUD = MBProgressHUD()
override func viewDidLoad() {
super.viewDidLoad()
fetchData()
}
func fetchData(){
hud.show(true)
// doing some http request
dispatch_async(dispatch_get_main_queue()) {
hud.hide(true)
}
}
}