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
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
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