IOS

Loading HUD

Posted by steven on April 18, 2015

####IOS Loading HUD,可以显示加载成功,失败,或无数据的状态

基于https://github.com/pkluz/PKHUD 和 https://github.com/iamim2/OneLoadingAnimation

做了部分修改,去除了无用的代码和部分动画效果,并添加了无结果时的动画

Demo:

image

使用:

show:

DxLoadingHUD.sharedInstance.show();

加载成功:

DxLoadingHUD.sharedInstance.showSuccessAnimation();

加载失败:

DxLoadingHUD.sharedInstance.showErrorAnimation();

无结果:

DxLoadingHUD.sharedInstance.showEmptyAnimation();

隐藏:

DxLoadingHUD.sharedInstance.hide(animated:true);
  • source:https://github.com/StevenDXC/DxLoadingHUD