0

My code:

open dialogbox

enter image description here

- (void)viewDidLoad { //Start MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; hud.labelText = @"loading..."; } 

I am using MBProgress HUD but I want to dialogbox click close
How to close dialog box to click close ?

2
  • The idea is to have the code that is doing the loading close the MBProgressHud when it's done. Commented Dec 18, 2012 at 10:08
  • yes when it's done but Clicking in the box will be closed what it's box click event ? this is my hide code [MBProgressHUD hideHUDForView:self.view animated:YES]; Commented Dec 18, 2012 at 11:23

1 Answer 1

1

it's worked ! (Void) touchesEnded event must use

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ [MBProgressHUD hideHUDForView:self.view animated:YES]; } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.