Showing
1 changed file
with
6 additions
and
6 deletions
| @@ -62,14 +62,14 @@ You will need LLVM 3.0 or later in order to build PNChart. | @@ -62,14 +62,14 @@ You will need LLVM 3.0 or later in order to build PNChart. | ||
| 62 | 62 | ||
| 63 | 63 | ||
| 64 | ```objective-c | 64 | ```objective-c |
| 65 | - #import "PNChart.h" | 65 | +#import "PNChart.h" |
| 66 | 66 | ||
| 67 | - //For CircleChart | 67 | +//For CircleChart |
| 68 | 68 | ||
| 69 | - PNCircleChart * circleChart = [[PNCircleChart alloc] initWithFrame:CGRectMake(0, 135.0, SCREEN_WIDTH, 200.0)]; | 69 | +PNCircleChart * circleChart = [[PNCircleChart alloc] initWithFrame:CGRectMake(0, 80.0, SCREEN_WIDTH, 100.0) andTotal:[NSNumber numberWithInt:100] andCurrent:[NSNumber numberWithInt:60]]; |
| 70 | - circleChart.total = [NSNumber numberWithInt:100]; | 70 | +circleChart.backgroundColor = [UIColor clearColor]; |
| 71 | - circleChart.current = [NSNumber numberWithInt:60]; | 71 | +[circleChart setStrokeColor:PNGreen]; |
| 72 | - [circleChart strokeChart]; | 72 | +[circleChart strokeChart]; |
| 73 | 73 | ||
| 74 | ``` | 74 | ``` |
| 75 | 75 |
-
Please register or login to post a comment