I have a webview to load on launch and have a SVProgressHUD to display while loading. This issue is when the load time takes long and the user backs off the view, I want to hide/dismiss the SVProgressHUD.
There is a built in function of dismiss. I tried to put the command in viewDidUnload but it does not work. Any help?
From SVProgressHUD project doc, to dismiss your HUD you need to call one of the following method:
Dismiss it in
viewWillDisappearmethod of yourUIViewController, if it has not be dismissed earlier.viewDidUnloadis called on specific memory condition (e.g low memory), insteadviewWillDisappearis called whenever yourview‘s controller disappears from screen.Hope it helps.