kevinzhow

Add Cocoapods

@@ -98,7 +98,7 @@ @@ -98,7 +98,7 @@
98 98
99 UIBezierPath *progressline = [UIBezierPath bezierPath]; 99 UIBezierPath *progressline = [UIBezierPath bezierPath];
100 100
101 - CGFloat firstValue = [_yValues[0] floatValue]; 101 + CGFloat firstValue = [[_yValues objectAtIndex:0] floatValue];
102 102
103 CGFloat xPosition = (xLabelMargin + _xLabelWidth) ; 103 CGFloat xPosition = (xLabelMargin + _xLabelWidth) ;
104 104
@@ -15,9 +15,21 @@ PNChart works on iOS 6.0 and later version and is compatible with ARC projects. @@ -15,9 +15,21 @@ PNChart works on iOS 6.0 and later version and is compatible with ARC projects.
15 15
16 You will need LLVM 3.0 or later in order to build PNChart. 16 You will need LLVM 3.0 or later in order to build PNChart.
17 17
  18 +
  19 +
  20 +
18 ## Usage 21 ## Usage
19 22
20 -Copy the PNChart folder to your project 23 +### Cocoapods
  24 +
  25 +[CocoaPods](http://cocoapods.org) is the recommended way to add PNChart to your project.
  26 +
  27 +1. Add a pod entry for PNChart to your Podfile `pod 'PNChart', '~> 0.1.5'`
  28 +2. Install the pod(s) by running `pod install`.
  29 +3. Include PNChart wherever you need it with `#import "PNChart.h"`.
  30 +
  31 +
  32 +### Copy the PNChart folder to your project
21 33
22 ```objective-c 34 ```objective-c
23 #import "PNChart.h" 35 #import "PNChart.h"
@@ -42,3 +54,8 @@ Copy the PNChart folder to your project @@ -42,3 +54,8 @@ Copy the PNChart folder to your project
42 ## License 54 ## License
43 55
44 This code is distributed under the terms and conditions of the [MIT license](LICENSE). 56 This code is distributed under the terms and conditions of the [MIT license](LICENSE).
  57 +
  58 +## SpecialThanks
  59 +
  60 +[@lexrus](http://twitter.com/lexrus) CocoaPods Spec
  61 +