Latest 0.0.2
Homepage https://github.com/wuyaGit/WYProgressView
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

集成与UIButton的进度控件。

1、导入说明

(1)支持pod导入
pod ‘WYProgressView’,’~> 0.0.2′

(2)直接下载源码,导入项目

示例1

2、使用说明

(1)使用xib或storyboard创建
示例2

(2)使用代码创建

[self.view addSubview:self.btnProgressView3];

- (UIButton *)btnProgressView3 {

  if (!_btnProgressView3) {

      _btnProgressView3 = [UIButton buttonWithFrame:CGRectMake(0, 510, 160, 160)
                                   wyProgressView:YES
                           wyProgressViewProperty:@{kProgressViewStrokeColor: WYColorRGBA(260, 260, 260, 0.6),
                                                    kProgressViewFillColor: [UIColor whiteColor],
                                                    kProgressViewFontColor: [UIColor whiteColor],
                                                    kProgressViewType: @(WYProgressViewTypeHollow)}];
      _btnProgressView3.center = CGPointMake(self.view.center.x, _btnProgressView3.center.y);
   }

   return _btnProgressView3;
}

(3)点击事件

self.btnProgressView3.handel = ^(UIButton *btn) {

    _btn3ProgressStop = !_btn3ProgressStop;
};

3、效果图

示例3

Latest podspec

{
    "name": "WYProgressView",
    "version": "0.0.2",
    "summary": "u6309u94aeu6539u9020u6210u8fdbu5ea6u6761u3002",
    "description": "u76f4u63a5u8c03u7528UIButtonu6269u5c55u7c7buff0cu6dfbu52a0u53c2u6570u5373u53efu5febu901fu642du5efau8fdbu5ea6u6761u3002",
    "homepage": "https://github.com/wuyaGit/WYProgressView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "youngBi": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/wuyaGit/WYProgressView.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "WYProgressView",
        "WYProgressView/**/*.{h,m}"
    ],
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This