Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
PNChart
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
kevinzhow
2013-11-07 15:37:30 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6b65e5f1ffdea963cc283194eb4b4c580260d1c4
6b65e5f1
1 parent
1d673c1a
Add Cocoapods
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
PNChartDemo/PNChart/PNLineChart.m
README.md
PNChartDemo/PNChart/PNLineChart.m
View file @
6b65e5f
...
...
@@ -98,7 +98,7 @@
UIBezierPath
*
progressline
=
[
UIBezierPath
bezierPath
];
CGFloat
firstValue
=
[
_yValues
[
0
]
floatValue
];
CGFloat
firstValue
=
[
[
_yValues
objectAtIndex
:
0
]
floatValue
];
CGFloat
xPosition
=
(
xLabelMargin
+
_xLabelWidth
)
;
...
...
README.md
View file @
6b65e5f
...
...
@@ -15,9 +15,21 @@ PNChart works on iOS 6.0 and later version and is compatible with ARC projects.
You will need LLVM 3.0 or later in order to build PNChart.
## Usage
Copy the PNChart folder to your project
### Cocoapods
[
CocoaPods
](
http://cocoapods.org
)
is the recommended way to add PNChart to your project.
1.
Add a pod entry for PNChart to your Podfile
`pod 'PNChart', '~> 0.1.5'`
2.
Install the pod(s) by running
`pod install`
.
3.
Include PNChart wherever you need it with
`#import "PNChart.h"`
.
### Copy the PNChart folder to your project
```
objective-c
#import "PNChart.h"
...
...
@@ -42,3 +54,8 @@ Copy the PNChart folder to your project
## License
This code is distributed under the terms and conditions of the
[
MIT license
](
LICENSE
)
.
## SpecialThanks
[
@lexrus
](
http://twitter.com/lexrus
)
CocoaPods Spec
...
...
Please
register
or
login
to post a comment