mutualmobile / MMProgressHUD

An easy-to-use HUD interface with personality.
MIT License
705 stars 131 forks source link

Dismiss with block #16

Closed ipeisong closed 10 years ago

ipeisong commented 10 years ago

Can provide block for dismissWithSuccess?

Usually one can dismiss with success then jump to another view, it would be great to have block once it is dismissed, thanks.

larsacus commented 10 years ago

There are three blocks you can set depending on what type of action you would like the block to fire on. The details can be found in the header for MMProgressHUD.H:

@property (nonatomic, copy) void(^progressCompletion)(void);

@property (nonatomic, copy) void(^dismissAnimationCompletion)(void);

@property (nonatomic, copy) void(^showAnimationCompletion)(void);