Latest 1.0
Homepage https://github.com/wjiuxing/JXDrawingCircleProgress
License MIT
Platforms ios , requires ARC
Frameworks UIKit
Authors

JXDrawingCircleProgress is an open-source ‘UIButton’ subclass built to make a circle styled count down animation with button. The most use case is to add a skip button to the Ad shows.

preview image

Installation

CocoaPods

JXDrawingCircleProgress is available through CocoaPods. To install it, simply add the following line to your Podfile, and then import <JXDrawingCircleProgress/JXDrawingCircleProgressButton.h>:

pod 'JXDrawingCircleProgress'

Manually

  1. Download the project and drop JXDrawingCircleProgress folder into your project;
  2. Import file JXDrawingCircleProgressButton.h.

How to use

- (void)viewDidLoad
{
    [super viewDidLoad];

    self.progressButton = [[JXDrawingCircleProgressButton alloc] initWithFrame:buttonFrame];
    _progressButton.lineWidth = 2.f;
    [_progressButton setTitle:@"Skip" forState:UIControlStateNormal];
    _progressButton.titleLabel.font = [UIFont systemFontOfSize:14.f];
    [_progressButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    [_progressButton addTarget:self action:@selector(__skipButtonTouched:) forControlEvents:UIControlEventTouchUpInside];

    [self.view addSubview:_progressButton];
}

- (void)someMethod
{
    [_progressButton startProgressAnimationWithDuration:5.f completionHandler:^(JXDrawingCircleProgressButton *progressButton) {
        NSLog(@"The circle progress button finished animation.");
    }];
}

Author

Amos King email: [email protected]

License

JXDrawingCircleProgress is released under MIT license. See LICENSE for details.

Latest podspec

{
    "name": "JXDrawingCircleProgress",
    "version": "1.0",
    "summary": "JXDrawingCircleProgress is an open-source 'UIButton' subclass built to make a circle styled count down animation with button.",
    "description": "JXDrawingCircleProgress is an open-source 'UIButton' subclass built to make a circle styled count down animation with button. The most use case is to add a skip button to the Ad shows.",
    "homepage": "https://github.com/wjiuxing/JXDrawingCircleProgress",
    "license": "MIT",
    "authors": {
        "Amos King": "[email protected]"
    },
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/wjiuxing/JXDrawingCircleProgress.git",
        "tag": "v1.0"
    },
    "source_files": "JXDrawingCircleProgress",
    "frameworks": "UIKit",
    "requires_arc": true
}

Pin It on Pinterest

Share This