jdg / MBProgressHUD

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

A button to Cancel the task. #270

Closed douglasjunior closed 8 years ago

douglasjunior commented 9 years ago

Do you intend to implement a Button to be able to cancel the task?

I found this pullrequest: https://github.com/jdg/MBProgressHUD/pull/230

But he has not yet been merged.

semerda commented 9 years ago

I like this. Would also like to know :)

matej commented 9 years ago

Yeah, I have it on the list for https://github.com/matej/MBProgressHUD/pull/68. Not yet sure how to best design that though.

gabosgab commented 9 years ago

+1!!

magellan314 commented 9 years ago

I already did this on MBProgressHUD when I wasn't updating for cocoa pods. Could you implement something similar?

Basically, added another button which was incremented in the "layoutSubviews" method. Then, I connected an action within MBProgressHUD which could callback to my class to notify a button on MBProgressHUD was pressed:

matej commented 8 years ago

Added in the latest version.