现在的位置: 首页 > 综合 > 正文

UIProgressHUD

2018年05月25日 ⁄ 综合 ⁄ 共 462字 ⁄ 字号 评论关闭


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

【上篇】
【下篇】

抱歉!评论已关闭.