合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
## 简要介绍 该库主要包含一些常用宏定义,标准样式宏定义及相关类,方便在项目中快速使用某些系统属性及快速初始化部分kit组件。具体代码可在如下地址下载: ~~~ http://192.168.0.116/monkey/iOS-URLoadIndicator.git ~~~ 下载示例代码,然后运行查看效果。 ## 导入方式 #### 使用Cocoapods导入 使用该库同时需要加入库 iOS-URAlert ,在Podfile文件中加入: ~~~ platform :ios, '7.0' target 'TestDemo' do pod 'iOS-URAlert', :git => 'http://192.168.0.116/monkey/iOS-URAlert.git' pod 'iOS-URLoadIndicator', :git => 'http://192.168.0.116/monkey/iOS-URLoadIndicator.git' end ~~~ 然后在终端执行命令: ~~~ $ pod install ~~~ 或者 ~~~ $ pod update ~~~ #### 手动导入 手动导入还需手动加入以下第三方库: ~~~ ReactiveCocoa (2.5) Masonry (1.0.2) MJRefresh (3.1.12) iOS-URAlert ~~~ ## 使用说明 该类提供3个可调用的方法: ~~~ //调用加载框 - (void)startLoading; //开始出现加载框,并且可以手动点击加载框图片取消,returnValue为手动取消后反馈事件 - (void)startLoadingWithCancel:(URReturnValue)returnValue; //加载框停止 - (void)stopLoading; ~~~ #### 使用方式 ~~~ //开始加载框 [[[URLoadingIndicator alloc] init] startLoading]; //停止加载框 [[[URLoadingIndicator alloc] init] stopLoading]; ~~~