matej/MBProgressHUD

In the showUsingAnimation: method,should use dispatch_async(dispatch_get_main_queue(), ^{})

Daniate opened this issue · 2 comments

UIView animation isn't thread safe.When I use it on iPhone 4.3 simulator,my program crashed.But on iPhone 6 simulator, it's ok. I added dispatch_async(dispatch_get_main_queue(), ^{}) in this method, then it's ok on iPhone 4.3 simulator. My english is poor.

The showUsingAnimation: method should already be called on the main thread. Just make sure to call the relevant public HUD methods on the main thread (e.g., the show: method).

Er, yes.You're right.