swift 加载状态按钮 APButton

发布时间:2022-02-18 20:54:58

项目管理系统ios中需要用到一些按钮, 在与数据库交互过程,展示出一些交互状态并不能再点击。我们就用到了 APButton这个开源组件

github地址:https://github.com/APUtils/APButton

使用方法

1.在Podfile中加入

pod 'APButton'

2.用终端打开项目所在的目录,并执tf

pod install

3.在swift文件中引用

import APButton

4.在项目中使用

 var submitBtn:APButton!;
 submitBtn=APButton();
 submitBtn.startAnimating(); //开始请求
  submitBtn.stopAnimating(); //结束请求

Card image cap
APP STORE
Card image cap
应用宝
Card image cap
小米
Card image cap
华为