SkillAgentSearch skills...

ProgressHUDForMac

HUD For Mac

Install / Use

/learn @LeeWongSnail/ProgressHUDForMac
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

ProgressHUDForMac

文本+图片

- (IBAction)showInfo:(NSButton *)sender {
    [self art_showInfoText:@"info Text" inWindow:self.view.window];
}

示例:

成功+图片

- (IBAction)showSuccess:(NSButton *)sender {
    [self art_showSuccessText:@"successText" inWindow:self.view.window];
}

示例:

错误+图片

- (IBAction)showError:(NSButton *)sender {
    [self art_showErrorText:@"error text" inWindow:self.view.window];
    
}

示例:

Loading

- (IBAction)showHUDLoading:(NSButton *)sender {
    [self art_showLoading:self.view.window];
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(10 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        [self art_dismissLoading];
    });
}

示例:

纯文本

- (IBAction)showTextTest:(NSButton *)sender {
    [self art_showText:@"test" inWindow:self.view.window];
}

示例:

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks3

Languages

Objective-C

Security Score

50/100

Audited on Apr 14, 2024

No findings