luohancc / xnprogresshud Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
使用的是全局的shared实例。
现在竖屏模式显示一次,然后再切换横屏之后再显示,就错位了。
现在如果有个弹窗model,则hud可能会被隐藏在后面显示。
如何设置优先级UIWindowLevel为:statusBar的等?
[[XNProgressHUD shared] setDisposableDelayResponse:0.3 delayDismiss:60];
[[XNProgressHUD shared] dismiss];
我想避免多次弹框问题,网络请求前延迟展示loading,请求后取消loading,如果0.3秒内返回了,就导致消失不掉的问题
被return了,里边玄虚弹出时候定时器处理也有点混乱
(void)didDismissOnMainQueue {
BOOL showing = self.showing;
__block UIView *targetView = self.targetView;
if (!showing && [self isWindowAndIsNotKeyWindow:(targetView)]) {
targetView.hidden = YES;
}
if(!showing) return;
目前好像只能设置颜色,不能设置阴影位置什么的
支持自定义设置_padding属性?
// maskView
if(self.isMaskEnable) {
self.maskView.backgroundColor = [self maskColorWithMaskType:self.maskType];
[self addSubviewIfNotContain:self.maskView superView:targetView];
}else{//需要重置回来
[self removeFromSuperview:self.maskView];
}
网络请求中习惯 [self.targetHud show];
结束后 [self.targetHud dismiss];
需要文字提示的时候showWithTitle
[self.targetHud show];
[self.targetHud dismiss];
[self.targetHud showWithTitle:@"这是一个支持自定义的轻量级HUD"];
这样的效果提示框会一闪而过,dismiss中有个animate延迟问题
尝试如下操作:
XNProgressHUD.shared()?.show()
Async.main(after: 5) {
XNProgressHUD.shared()?.showError(withTitle: "请求失败")
Async.main(after: 5) {
XNProgressHUD.shared()?.showSuccess(withTitle: "请求成功")
}
}
在loading > error的过程中,titleLabel的动画是从左上角下来的,有点儿奇怪。
非常感谢大力支持!谢谢!
在vertical的情况下,如果标题过于短,而自定义的图标和padding都比较大的话,就会显示成瘦的长方形。可否支持下最小宽度,让他看起来没那么扁?
远程仓库已经更新了 但pod search XNProgressHUD 查询不到
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.