Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Tbwas/XDProgressView
XDProgressView is similar to UIProgressView, but it's more flexible than it.
https://github.com/Tbwas/XDProgressView
Last synced: about 2 months ago
JSON representation
XDProgressView is similar to UIProgressView, but it's more flexible than it.
- Host: GitHub
- URL: https://github.com/Tbwas/XDProgressView
- Owner: Tbwas
- License: mit
- Created: 2017-02-09T16:48:23.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-09T03:11:57.000Z (about 7 years ago)
- Last Synced: 2024-10-20T11:19:32.770Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 55.7 KB
- Stars: 27
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome - XDProgressView - XDProgressView可以由你心情任意设置高度,也可在上面显示文字。 (OOM-Leaks-Crash / WebView-ProgressBar)
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 `, 否则的话`import 'XDProgressView.h'`,使用方式和`UIProgressView`基本相同,具体请看接口文件。