luowei / LWProgressView

LWProgressView,饼状形进度条组件

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LWProgressView

CI Status Version License Platform

Example

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

- (IBAction)btnAction:(UIButton *)sender {

    self.counter = 0;
    [NSTimer scheduledTimerWithTimeInterval:0.05
                                     target:self selector:@selector(scheduleTimer:) userInfo:nil repeats:YES];

}


- (void)scheduleTimer:(NSTimer *)timer {

    [LWMaskProgressView showMaskProgressViewin:self.view withText:@"取消" progress:(CGFloat) (self.counter / 100.0) dismissBlock:^{
    }];

    if (self.counter == 100) {
        [LWMaskProgressView dismissMaskProgressViewin:self.view];
        [timer invalidate];
        return;
    }

    NSLog(@"===counter:%d", self.counter);
    self.counter++;

}

Requirements

Installation

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

pod 'LWProgressView'

Carthage

github "luowei/LWProgressView"

Author

luowei, luowei@wodedata.com

License

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

About

LWProgressView,饼状形进度条组件

License:MIT License


Languages

Language:Objective-C 70.8%Language:Ruby 15.5%Language:Shell 13.6%