kevin

Add PNCircleChart

@@ -28,6 +28,7 @@ @@ -28,6 +28,7 @@
28 0AF7A8B9182AEB80003645C4 /* PNBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8B8182AEB80003645C4 /* PNBar.m */; }; 28 0AF7A8B9182AEB80003645C4 /* PNBar.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8B8182AEB80003645C4 /* PNBar.m */; };
29 0AF7A8BE182AEB99003645C4 /* PNChartLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8BB182AEB99003645C4 /* PNChartLabel.m */; }; 29 0AF7A8BE182AEB99003645C4 /* PNChartLabel.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8BB182AEB99003645C4 /* PNChartLabel.m */; };
30 0AF7A8BF182AEB99003645C4 /* PNColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8BD182AEB99003645C4 /* PNColor.m */; }; 30 0AF7A8BF182AEB99003645C4 /* PNColor.m in Sources */ = {isa = PBXBuildFile; fileRef = 0AF7A8BD182AEB99003645C4 /* PNColor.m */; };
  31 + 9F55483E18498E0E004073B5 /* PNCircleChart.m in Sources */ = {isa = PBXBuildFile; fileRef = 9F55483D18498E0E004073B5 /* PNCircleChart.m */; };
31 /* End PBXBuildFile section */ 32 /* End PBXBuildFile section */
32 33
33 /* Begin PBXContainerItemProxy section */ 34 /* Begin PBXContainerItemProxy section */
@@ -73,6 +74,8 @@ @@ -73,6 +74,8 @@
73 0AF7A8BB182AEB99003645C4 /* PNChartLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PNChartLabel.m; path = PNChart/PNChartLabel.m; sourceTree = "<group>"; }; 74 0AF7A8BB182AEB99003645C4 /* PNChartLabel.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PNChartLabel.m; path = PNChart/PNChartLabel.m; sourceTree = "<group>"; };
74 0AF7A8BC182AEB99003645C4 /* PNColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PNColor.h; path = PNChart/PNColor.h; sourceTree = "<group>"; }; 75 0AF7A8BC182AEB99003645C4 /* PNColor.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PNColor.h; path = PNChart/PNColor.h; sourceTree = "<group>"; };
75 0AF7A8BD182AEB99003645C4 /* PNColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PNColor.m; path = PNChart/PNColor.m; sourceTree = "<group>"; }; 76 0AF7A8BD182AEB99003645C4 /* PNColor.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PNColor.m; path = PNChart/PNColor.m; sourceTree = "<group>"; };
  77 + 9F55483C18498E0E004073B5 /* PNCircleChart.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = PNCircleChart.h; path = PNChart/PNCircleChart.h; sourceTree = "<group>"; };
  78 + 9F55483D18498E0E004073B5 /* PNCircleChart.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = PNCircleChart.m; path = PNChart/PNCircleChart.m; sourceTree = "<group>"; };
76 /* End PBXFileReference section */ 79 /* End PBXFileReference section */
77 80
78 /* Begin PBXFrameworksBuildPhase section */ 81 /* Begin PBXFrameworksBuildPhase section */
@@ -189,6 +192,8 @@ @@ -189,6 +192,8 @@
189 0AF7A8B5182ADDEB003645C4 /* PNBarChart.m */, 192 0AF7A8B5182ADDEB003645C4 /* PNBarChart.m */,
190 0AF7A8B7182AEB80003645C4 /* PNBar.h */, 193 0AF7A8B7182AEB80003645C4 /* PNBar.h */,
191 0AF7A8B8182AEB80003645C4 /* PNBar.m */, 194 0AF7A8B8182AEB80003645C4 /* PNBar.m */,
  195 + 9F55483C18498E0E004073B5 /* PNCircleChart.h */,
  196 + 9F55483D18498E0E004073B5 /* PNCircleChart.m */,
192 ); 197 );
193 name = PNChart; 198 name = PNChart;
194 sourceTree = "<group>"; 199 sourceTree = "<group>";
@@ -308,6 +313,7 @@ @@ -308,6 +313,7 @@
308 0AF7A8B6182ADDEB003645C4 /* PNBarChart.m in Sources */, 313 0AF7A8B6182ADDEB003645C4 /* PNBarChart.m in Sources */,
309 0AF7A874182AA9F6003645C4 /* main.m in Sources */, 314 0AF7A874182AA9F6003645C4 /* main.m in Sources */,
310 0AF7A8B3182AC604003645C4 /* PNLineChart.m in Sources */, 315 0AF7A8B3182AC604003645C4 /* PNLineChart.m in Sources */,
  316 + 9F55483E18498E0E004073B5 /* PNCircleChart.m in Sources */,
311 0AF7A878182AA9F6003645C4 /* PCAppDelegate.m in Sources */, 317 0AF7A878182AA9F6003645C4 /* PCAppDelegate.m in Sources */,
312 ); 318 );
313 runOnlyForDeploymentPostprocessing = 0; 319 runOnlyForDeploymentPostprocessing = 0;
@@ -10,4 +10,14 @@ @@ -10,4 +10,14 @@
10 10
11 @interface PNCircleChart : UIView 11 @interface PNCircleChart : UIView
12 12
  13 +-(void)strokeChart;
  14 +- (id)initWithFrame:(CGRect)frame andTotal:(NSNumber *)total andCurrent:(NSNumber *)current;
  15 +
  16 +@property (nonatomic, strong) UIColor * strokeColor;
  17 +
  18 +@property (nonatomic, strong) NSNumber * total;
  19 +@property (nonatomic, strong) NSNumber * current;
  20 +
  21 +
  22 +
13 @end 23 @end
@@ -19,6 +19,8 @@ @@ -19,6 +19,8 @@
19 return self; 19 return self;
20 } 20 }
21 21
  22 +
  23 +
22 /* 24 /*
23 // Only override drawRect: if you perform custom drawing. 25 // Only override drawRect: if you perform custom drawing.
24 // An empty implementation adversely affects performance during animation. 26 // An empty implementation adversely affects performance during animation.