{"action":"created","issue":{"url":"https://api.github.com/repos/jdg/MBProgressHUD/issues/270","labels_url":"https://api.github.com/repos/jdg/MBProgressHUD/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/jdg/MBProgressHUD/issues/270/comments","events_url":"https://api.github.com/repos/jdg/MBProgressHUD/issues/270/events","html_url":"https://github.com/jdg/MBProgressHUD/issues/270","id":64769836,"number":270,"title":"A button to Cancel the task.","user":{"login":"douglasjunior","id":1512341,"avatar_url":"https://avatars.githubusercontent.com/u/1512341?v=3","gravatar_id":"","url":"https://api.github.com/users/douglasjunior","html_url":"https://github.com/douglasjunior","followers_url":"https://api.github.com/users/douglasjunior/followers","following_url":"https://api.github.com/users/douglasjunior/following{/other_user}","gists_url":"https://api.github.com/users/douglasjunior/gists{/gist_id}","starred_url":"https://api.github.com/users/douglasjunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/douglasjunior/subscriptions","organizations_url":"https://api.github.com/users/douglasjunior/orgs","repos_url":"https://api.github.com/users/douglasjunior/repos","events_url":"https://api.github.com/users/douglasjunior/events{/privacy}","received_events_url":"https://api.github.com/users/douglasjunior/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-27T14:12:31Z","updated_at":"2015-10-18T16:50:43Z","closed_at":null,"body":"Do you intend to implement a Button to be able to cancel the task?\r\n\r\nI found this pullrequest: https://github.com/jdg/MBProgressHUD/pull/230\r\n\r\nBut he has not yet been merged."},"comment":{"url":"https://api.github.com/repos/jdg/MBProgressHUD/issues/comments/149029774","html_url":"https://github.com/jdg/MBProgressHUD/issues/270#issuecomment-149029774","issue_url":"https://api.github.com/repos/jdg/MBProgressHUD/issues/270","id":149029774,"user":{"login":"magellan314","id":8674232,"avatar_url":"https://avatars.githubusercontent.com/u/8674232?v=3","gravatar_id":"","url":"https://api.github.com/users/magellan314","html_url":"https://github.com/magellan314","followers_url":"https://api.github.com/users/magellan314/followers","following_url":"https://api.github.com/users/magellan314/following{/other_user}","gists_url":"https://api.github.com/users/magellan314/gists{/gist_id}","starred_url":"https://api.github.com/users/magellan314/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magellan314/subscriptions","organizations_url":"https://api.github.com/users/magellan314/orgs","repos_url":"https://api.github.com/users/magellan314/repos","events_url":"https://api.github.com/users/magellan314/events{/privacy}","received_events_url":"https://api.github.com/users/magellan314/received_events","type":"User","site_admin":false},"created_at":"2015-10-18T16:50:43Z","updated_at":"2015-10-18T16:50:43Z","body":"I already did this on MBProgressHUD when I wasn't updating for cocoa pods. Could you implement something similar?\r\n\r\nBasically, 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:\r\n\r\n- (void)formButtonTapped:(id)sender {\r\n    if ([delegate respondsToSelector:@selector(formButtonWasPressed:)]) {\r\n        [delegate performSelector:@selector(formButtonWasPressed:) withObject:self.formButton];\r\n    }\r\n}"}}