Latest 0.0.2
Homepage https://github.com/393385724/DDTouchCircleButton
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, CoreGraphics, UIKit
Authors

a view that long press show progress bar outside

self.drawCirleButton = [[DDTouchCircleButton alloc] initWithFrame:CGRectMake(105, 180, 110, 110)];
self.drawCirleButton.duration = 0.75;
self.drawCirleButton.backgroundColor = [UIColor whiteColor];
self.drawCirleButton.trackTintColor = [UIColor colorWithRed:0 green:0 blue:0 alpha:0.24];
self.drawCirleButton.progressTintColor = [UIColor colorWithRed:247/255.0f green:95/255.0f blue:50/255.0f alpha:1.0];
self.drawCirleButton.lineWidth = 6.0;
self.drawCirleButton.image = [UIImage imageNamed:@"[email protected]"];

[self.view addSubview:self.drawCirleButton];

[self.drawCirleButton addTarget:self action:@selector(ddStrokeAnimationDidFinished) forControlEvents:UIControlEventTouchUpInside];

  • (void)ddStrokeAnimationDidFinished{
    //事件
    }

Latest podspec

{
    "name": "DDTouchCircleButton",
    "version": "0.0.2",
    "summary": "a view that long press show progress bar outside.",
    "homepage": "https://github.com/393385724/DDTouchCircleButton",
    "license": "MIT",
    "authors": {
        "llg": "[email protected]"
    },
    "source": {
        "git": "https://github.com/393385724/DDTouchCircleButton.git",
        "tag": "0.0.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "DDTouchCircleButton/*.{h,m}",
    "frameworks": [
        "Foundation",
        "CoreGraphics",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This