XDProgressView Save

XDProgressView is similar to UIProgressView, but it's more flexible than it.

Project README

XDProgressView

Q: XDProgressView和UIProgressView相比有什么不同?

A: 1. UIProgressView的下面这两个属性暂时没有去实现,个人觉得可有可无。除此之外,尽可能和系统原生保持一致。

@property(nonatomic) UIProgressViewStyle progressViewStyle;
@property(nonatomic, strong, nullable) NSProgress *observedProgress
 

  2. XDProgressView可以由你心情任意设置高度,也可在上面显示文字。

安装

使用CocoaPods

  platform :ios, '8.0'
  
  target 'TargetName' do
  pod 'XDProgressView'
  end

若执行命令pod search XDProgressView出现以下错误,[!] Unable to find a pod with name, author, summary, or description matching..., 先执行rm ~/Library/Caches/CocoaPods/search_index.json,再执行pod search XDProgressView即可。    

直接下载源码

git clone 或者 download, 将下载好的demo中的progressView文件夹下的整个XDProgressView文件拖入项目中即可。

使用

若是通过CocoaPods方式安装,需要这样导入头文件import <XDProgressView.h>, 否则的话import 'XDProgressView.h',使用方式和UIProgressView基本相同,具体请看接口文件。

Open Source Agenda is not affiliated with "XDProgressView" Project. README Source: Tbwas/XDProgressView
Stars
27
Open Issues
0
Last Commit
6 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating