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: Difference between revisions - iPhone Development Wiki

UIProgressHUD: Difference between revisions

From iPhone Development Wiki
(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…')
 
mNo edit summary
 
Line 1: Line 1:
[[Image:UIProgressHUDs.png|thumb|right|UIProgressHUD when shown, and set to "done" state respectively.]]
[[Image:UIProgressHUDs.png|thumb|right|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<ref>MBProgressHUD: http://www.bukovinski.com/2009/04/08/mbprogresshud-for-iphone/</ref> exist.
[[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<ref>MBProgressHUD: http://github.com/jdg/MBProgressHUD</ref> exist.


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

Latest revision as of 14:30, 11 December 2009

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