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
Added to @EricDXS's answer,
The Swift 3 version is here
To show:
let loadingNotification = MBProgressHUD.showAdded(to: self.view, animated: true)
loadingNotification.mode = MBProgressHUDMode.indeterminate
loadingNotification.label.text = "Loading"
To dismiss:
loadingNotification.hide(animated: true)