CocoaPods trunk is moving to be read-only. Read more on the blog, there are 10 months to go.

WKProgressHUD 1.1

WKProgressHUD 1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2016

Maintained by WelkinXie, WelkinXie.



  • By
  • Welkin Xie

Simply write one line to use HUD.

Effect

() () ()

Usage

pod 'WKProgressHUD' and import "WKProgressHUD.h"

()

[WKProgressHUD showInView:self.view withText:@"加载中" animated:YES];

()

[WKProgressHUD showInView:self.view withText:@"" animated:YES];

()

[WKProgressHUD popMessage:@"网络异常" inView:self.view duration:1.5 animated:YES];

Dismiss:

+ (void)dismissInView:(UIView *)view animated:(BOOL)animated;
+ (void)dismissAll:(BOOL)animated;
- (void)dismiss:(BOOL)animated;

License

WKProgressHUD is released under MIT License.

中文说明

一行代码实现提示消息。

最轻巧,使用最简单的HUD。

效果图

() () ()

使用方法

pod 'WKProgressHUD'

或下载源码并把"WKProgressHUD"目录拖拽到项目中。

()

[WKProgressHUD showInView:self.view withText:@"加载中" animated:YES];

()

[WKProgressHUD showInView:self.view withText:@"" animated:YES];

()

[WKProgressHUD popMessage:@"网络异常" inView:self.view duration:1.5 animated:YES];

取消显示:

// 取消view中的HUD
+ (void)dismissInView:(UIView *)view animated:(BOOL)animated;
// 取消所有HUD
+ (void)dismissAll:(BOOL)animated;
// 取消显示
- (void)dismiss:(BOOL)animated;

许可

WKProgressHUD is released under MIT License.