UIProgressHUD


UIProgressHUD - 清雨小竹 - 清雨小竹
 





@interface UIProgressHUD : NSObject

- (void) show: (BOOL) yesOrNo;

- (UIProgressHUD *) initWithWindow: (UIView *) window;

@end


@interface HelloController : UIViewController

@end


@implementation HelloController


- (void) killHUD: (id) aHUD

{

[aHUD show:NO];

[aHUD release];

}

- (void) presentSheet

{

id HUD = [[UIProgressHUD alloc] initWithWindow:self.view];

    [HUD setText:@"Downloading File. Please wait."];

    [HUD show:YES];

    [self performSelector:@selector(killHUD:) withObject:HUD afterDelay:5.0];

}

调用 presentSheet
posted @ 2012-12-06 15:31  废弃账号  阅读(105)  评论(0编辑  收藏  举报