jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

[NSObject cancelPreviousPerformRequestsWithTarget:self] EXC_BAD_ACCESS #456

Open songjizu001 opened 7 years ago

songjizu001 commented 7 years ago
2017-01-17 4 39 35

Iphone4s ios 8.0

matej commented 6 years ago

Can you provide reproduction steps?

ZeranLatte commented 6 years ago
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

matej commented 6 years ago

The whileExecuting API is no longer available. You should use a more recent version of the class.