How to use MBProgressHUD with swift

后端 未结 10 1715
北海茫月
北海茫月 2020-12-08 02:23

here is my code , but it showing the progress . is there any error in this code? please give some idea to fix this, or give some link related to this.

class          


        
10条回答
  •  一整个雨季
    2020-12-08 02:50

    Updated Answer:

    let loadingNotification = MBProgressHUD.showAdded(to: view, animated: true)
    loadingNotification.mode = MBProgressHUDMode.indeterminate
    loadingNotification.label.text = "Loading"
    

    To dismiss the ProgressHUD:

    MBProgressHUD.hideAllHUDs(for: view, animated: true)
    

提交回复
热议问题