mutualmobile / MMProgressHUD

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

Directly show success or error notification #15

Closed ipeisong closed 10 years ago

ipeisong commented 10 years ago

Now there is no way to simply show a success or failure notification. Have to call show and dismissWithSuccess and the effect looks weird. Thanks.

larsacus commented 10 years ago

I'm not really understanding the question.

There are both success and error dismissal APIs:

+ (void)dismissWithError:(NSString *)message;
+ (void)dismissWithSuccess:(NSString *)message;

You're saying you want to permanently display an error to the user?

ipeisong commented 10 years ago

I tried to call dismissWithSuccess but HUD didn't show. So I guess I need to call show before dismiss?

larsacus commented 10 years ago

Correct. The HUD cannot be dismissed until it has been displayed.