张航

fix typo

@@ -15,11 +15,11 @@ @@ -15,11 +15,11 @@
15 15
16 @property (nonatomic, readonly) NSArray *items; 16 @property (nonatomic, readonly) NSArray *items;
17 17
18 -@property (nonatomic) UIFont *descriptionTextFont; //defualt is [UIFont fontWithName:@"Avenir-Medium" size:18.0]; 18 +@property (nonatomic) UIFont *descriptionTextFont; //default is [UIFont fontWithName:@"Avenir-Medium" size:18.0];
19 -@property (nonatomic) UIColor *descriptionTextColor; //defualt is [UIColor whiteColor] 19 +@property (nonatomic) UIColor *descriptionTextColor; //default is [UIColor whiteColor]
20 -@property (nonatomic) UIColor *descriptionTextShadowColor; //defualt is [[UIColor blackColor] colorWithAlphaComponent:0.4] 20 +@property (nonatomic) UIColor *descriptionTextShadowColor; //default is [[UIColor blackColor] colorWithAlphaComponent:0.4]
21 -@property (nonatomic) CGSize descriptionTextShadowOffset; //defualt is CGSizeMake(0, 1) 21 +@property (nonatomic) CGSize descriptionTextShadowOffset; //default is CGSizeMake(0, 1)
22 -@property (nonatomic) NSTimeInterval duration;//defualt is 1.0 22 +@property (nonatomic) NSTimeInterval duration;//default is 1.0
23 23
24 - (void)strokeChart; 24 - (void)strokeChart;
25 25
@@ -21,6 +21,8 @@ @@ -21,6 +21,8 @@
21 @property (nonatomic) CAShapeLayer *pieLayer; 21 @property (nonatomic) CAShapeLayer *pieLayer;
22 @property (nonatomic) NSMutableArray *descriptionLabels; 22 @property (nonatomic) NSMutableArray *descriptionLabels;
23 23
  24 +- (void)loadDefault;
  25 +
24 - (UILabel *)descriptionLabelForItemAtIndex:(NSUInteger)index; 26 - (UILabel *)descriptionLabelForItemAtIndex:(NSUInteger)index;
25 - (PNPieChartDataItem *)dataItemForIndex:(NSUInteger)index; 27 - (PNPieChartDataItem *)dataItemForIndex:(NSUInteger)index;
26 28
@@ -31,6 +33,7 @@ @@ -31,6 +33,7 @@
31 startPercentage:(CGFloat)startPercentage 33 startPercentage:(CGFloat)startPercentage
32 endPercentage:(CGFloat)endPercentage; 34 endPercentage:(CGFloat)endPercentage;
33 35
  36 +
34 @end 37 @end
35 38
36 39
@@ -49,14 +52,14 @@ @@ -49,14 +52,14 @@
49 _descriptionTextShadowOffset = CGSizeMake(0, 1); 52 _descriptionTextShadowOffset = CGSizeMake(0, 1);
50 _duration = 1.0; 53 _duration = 1.0;
51 54
52 - [self loadDefualt]; 55 + [self loadDefault];
53 } 56 }
54 57
55 return self; 58 return self;
56 } 59 }
57 60
58 61
59 -- (void)loadDefualt{ 62 +- (void)loadDefault{
60 _currentTotal = 0; 63 _currentTotal = 0;
61 _total = 0; 64 _total = 0;
62 65
@@ -73,7 +76,7 @@ @@ -73,7 +76,7 @@
73 #pragma mark - 76 #pragma mark -
74 77
75 - (void)strokeChart{ 78 - (void)strokeChart{
76 - [self loadDefualt]; 79 + [self loadDefault];
77 80
78 [self.items enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { 81 [self.items enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
79 _total +=((PNPieChartDataItem *)obj).value; 82 _total +=((PNPieChartDataItem *)obj).value;