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
Kevin
2014-12-31 16:50:51 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
cf74053af127a7f02fa826acd9b4d2de0276619b
cf74053a
2 parents
49700477
9071dfa2
Merge pull request #136 from AustinChou/master
fixed circle chart layer position problem
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
PNChart/PNCircleChart.m
PNChart/PNCircleChart.m
View file @
cf74053
...
...
@@ -33,7 +33,7 @@
CGFloat
endAngle
=
clockwise
?
-
90
.
01
f
:
270
.
01
f
;
_lineWidth
=
@8.0f
;
UIBezierPath
*
circlePath
=
[
UIBezierPath
bezierPathWithArcCenter
:
CGPointMake
(
self
.
center
.
x
,
self
.
center
.
y
)
UIBezierPath
*
circlePath
=
[
UIBezierPath
bezierPathWithArcCenter
:
CGPointMake
(
self
.
bounds
.
size
.
width
/
2
.
0
f
,
self
.
bounds
.
size
.
height
/
2
.
0
f
)
radius
:(
self
.
frame
.
size
.
height
*
0
.
5
)
-
[
_lineWidth
floatValue
]
startAngle:
DEGREES_TO_RADIANS
(
startAngle
)
endAngle:
DEGREES_TO_RADIANS
(
endAngle
)
...
...
Please
register
or
login
to post a comment