Open songjizu001 opened 7 years ago
Can you provide reproduction steps?
let hud = MBProgressHUD.showAdded(to: view, animated: true)!
hud.labelText = "Updating..."
hud.minSize = CGSize(width: 150, height: 100)
hud.removeFromSuperViewOnHide = true
hud.dimBackground = false
hud.show(animated: true, whileExecuting: {
for _ in 0...4 {
sleep(1)
print("excuting")
}
}, completionBlock: {
hud.hide(animated: true)
})
I think I am not using it correctly, but this does trigger the crash @matej
The whileExecuting API is no longer available. You should use a more recent version of the class.
Iphone4s ios 8.0