{"push_id":1286501849,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"7287fc6483345ba6e9ce439c64b18871066379d7","before":"28bc2f1e03b8973dec693fdb4cba68144f8e7953","commits":[{"sha":"7287fc6483345ba6e9ce439c64b18871066379d7","author":{"name":"小强","email":"0268414acf3e723507a8dc9aa06c39a6b003d1d2@qq.com"},"message":"用法\n\n# ProgressCircle\r\n进度圆环\r\n-(void)setup{\r\n    CGFloat width = [UIScreen mainScreen].bounds.size.width;\r\n    XQCircleView *circle = [[XQCircleView alloc] initWithFrame:CGRectMake(20, 100, width - 40, width - 40)];\r\n    circle.dataArray = @[@0.2,@0.2,@0.1,@0.3,@0.2];\r\n    circle.circleWidth = 40.0f;\r\n    circle.progress = 0.1;\r\n    circle.mainColor = [UIColor greenColor];\r\n    circle.secondaryColor = [UIColor lightGrayColor];\r\n    circle.selectedNum = ^(NSInteger number){\r\n        self.clickLabel.text = [NSString stringWithFormat:@\"点击了%ld个分块\",number];\r\n    };\r\n    [self.view addSubview:circle];\r\n     self.circle = circle;\r\n\r\n    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(width * 0.5 -100, 130 +width - 40 , 200, 25)];\r\n    label.textAlignment = NSTextAlignmentCenter;\r\n    [self.view addSubview:label];\r\n    self.clickLabel = label;\r\n    \r\n    UISlider *slider = [[UISlider alloc] initWithFrame:CGRectMake(width * 0.5 - 100, 90 + width + 45 , 200, 10)];\r\n    [slider addTarget:self action:@selector(clickSliderAction:) forControlEvents:UIControlEventValueChanged];\r\n    [self.view addSubview:slider];\r\n\r\n}\r\n\r\n-(void)clickSliderAction:(UISlider *)sender{\r\n    self.circle.sliderValue = sender.value;\r\n}","distinct":true,"url":"https://api.github.com/repos/maxiaoqiang/ProgressCircle/commits/7287fc6483345ba6e9ce439c64b18871066379d7"}]}
{"actor":{"display_login":"maxiaoqiang"}}