Deprecated: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/extensions/Variables/includes/ExtVariables.php on line 198
UIProgressHUD - iPhone Development Wiki

UIProgressHUD

From iPhone Development Wiki
Revision as of 09:39, 22 November 2009 by KennyTM~ (talk | contribs) (Created page with 'thumb|right|UIProgressHUD when shown, and set to "done" state respectively. UIProgressHUD is a view which occupies the whole window for showing a…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
UIProgressHUD when shown, and set to "done" state respectively.

UIProgressHUD is a view which occupies the whole window for showing a short progress message. This view is private, that means you shouldn't use them for AppStore apps, but alternatives[1] exist.

Also note that UIProgressHUD is just a normal view. It will not block interactions to other background views.

Using UIProgressHUD

UIProgressHUD* hud = [[UIProgressHUD alloc] initWithFrame:CGRectZero];
[hud setText:@"Loading, please wait."];
[hud showInView:someView];
...
[hud done];
...
[hud hide];
...
[hud release];

References