Latest 1.0.2
Homepage https://github.com/zhuayi/ZProgress
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

Usage

ZProgress是一款自定义非常方便的进度条控件

To run the example project, clone the repo, and run pod install from the Example directory first.

Style

进度条类型

typedef NS_ENUM(NSInteger, ZProgressType) {
// 圆形进度条
ScrollToRound,
// 进度条, X 轴滑行
ScrollToX,
// 进度条, Y 轴滑行
ScrollToY
};

进度条类型

@property (nonatomic, assign) ZProgressType zprogressType;

进度条宽度, 横向滚动时则为高度.

@property (nonatomic, assign) CGFloat progressWidth;

进度条颜色

@property (nonatomic, strong) UIColor *progressColor;

进度条背景色

@property(nonatomic, strong) UIColor *trackTintColor;

Example

ZProgressView *roundProgessView = [[ZProgressView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height - 64)];
[roundProgessView setProgress:30 / 100.0 animated:YES duration:1.2]; // 动画
roundProgessView.delegate = self; // 代理
roundProgessView.style.progressWidth = 50.0; // 进度条宽度
roundProgessView.style.zprogressType = ScrollToX; // 滚动方向
roundProgessView.style.progressColor = [UIColor redColor];  // 进度条颜色值
roundProgessView.style.trackTintColor = [UIColor greenColor]; // 进度条背景色
roundProgessView.backgroundColor = [UIColor grayColor];
[self.view addSubview:roundProgessView];

ZProgressZProgressZProgress

Installation

ZProgress is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ZProgress"

Author

zhuayi, [email protected]

License

ZProgress is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZProgress",
    "version": "1.0.2",
    "summary": "ZProgressu662fu4e00u6b3eu81eau5b9au4e49u975eu5e38u65b9u4fbfu7684u8fdbu5ea6u6761u63a7u4ef6",
    "description": "ZProgressu662fu4e00u6b3eu81eau5b9au4e49u975eu5e38u65b9u4fbfu7684u8fdbu5ea6u6761u63a7u4ef6, u652fu6301u6a2au5411,u7eb5u5411,u5706u5f62u7b49u5c55u793au65b9u5f0f,u7b80u5355, u9ad8u6548, u6837u5f0fu4e30u5bcc.",
    "homepage": "https://github.com/zhuayi/ZProgress",
    "screenshots": [
        "https://raw.githubusercontent.com/zhuayi/ZProgress/master/screenshots/screenshots_1.gif",
        "https://raw.githubusercontent.com/zhuayi/ZProgress/master/screenshots/screenshots_2.gif",
        "https://raw.githubusercontent.com/zhuayi/ZProgress/master/screenshots/screenshots_3.gif"
    ],
    "license": "MIT",
    "authors": {
        "zhuayi": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zhuayi/ZProgress.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Classes/**/*{h,m}",
    "public_header_files": "Classes/**/*.h"
}

Pin It on Pinterest

Share This