Comments (2)
抱歉才看到问题. 待我验证问题后再回复你.
from wsprogresshud.
如果这个hud会重复使用, 建议添加一个hud属性或者成员变量.
如示例中的使用方法:
@implementation ViewController
{
WSProgressHUD *hud; //添加为成员变量.
}
开始使用: ---------
初始化:
hud = [[WSProgressHUD alloc] initWithView:self.navigationController.view];
[self.view addSubview:hud];
//show hud
[hud showWithString:@"Wating..." maskType:WSProgressHUDMaskTypeBlack];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[hud dismiss];
});
下一次使用:
[hud showImage:nil status:@"Success"];
*对于一般需求, 推荐直接使用类方法. 具体例子可以参考Demo中用法.
from wsprogresshud.
Related Issues (19)
- Add Shimmering as a Podspec dependency HOT 2
- Toast消失问题 HOT 4
- 性能有问题 HOT 3
- 希望能支持 Carthage HOT 2
- hud 消失没有回调 HOT 1
- 有没有swift版本 HOT 1
- 请问内存问题修复了吗 HOT 2
- iOS13 调用[WSProgressHUD dismiss]不消失 HOT 2
- 请问1.1.4版本什么时候可以pod下来? 1.1.3不支持iphoneX HOT 5
- 在iOS13上,显示不正常,添加到最底层的窗口上去了,导致显示不出来
- 您好,在 Podfile 加入 :generate_multiple_pod_projects => true 之后,编译不能通过 HOT 1
- 怎么调整内边距啊?
- WSProgressHUDMaskTypeClear HOT 2
- 首次使用showSuccessWithStatus方法时没有图片! HOT 3
- pod codes is different with your demo code? HOT 1
- 第一次调用showErrorWithStatus的时候显示错误 HOT 1
- showImage 可不可以加上显示动态图片功能 HOT 1
- dismiss 方法执行后没有“立刻”消失,导致后面show出来的alert瞬间消失 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsprogresshud.