From iPhone Development Wiki
Revision as of 14:30, 11 December 2009 by KennyTM~ (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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];