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-04 19:40:09 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
0b050d81abfa1b186b2ddc4233c417b356a8742c
0b050d81
2 parents
db46cd41
cb6d7013
Merge pull request #120 from mrigo/fixedCirclePathPositioning
Fixed circlePath positioning
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
PNChart/PNCircleChart.m
PNChart/PNCircleChart.m
View file @
0b050d8
...
...
@@ -33,8 +33,8 @@
CGFloat
endAngle
=
clockwise
?
-
90
.
01
f
:
270
.
01
f
;
_lineWidth
=
@8.0f
;
UIBezierPath
*
circlePath
=
[
UIBezierPath
bezierPathWithArcCenter
:
CGPointMake
(
self
.
center
.
x
,
self
.
center
.
y
)
radius
:
self
.
frame
.
size
.
height
*
0
.
5
UIBezierPath
*
circlePath
=
[
UIBezierPath
bezierPathWithArcCenter
:
CGPointMake
(
self
.
frame
.
size
.
width
/
2
,
self
.
frame
.
size
.
height
/
2
)
radius
:
(
self
.
frame
.
size
.
height
*
0
.
5
)
-
[
_lineWidth
floatValue
]
startAngle:
DEGREES_TO_RADIANS
(
startAngle
)
endAngle:
DEGREES_TO_RADIANS
(
endAngle
)
clockwise:
clockwise
];
...
...
Please
register
or
login
to post a comment