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
Emmanuel Castellani
2015-01-30 10:34:35 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dc90c4f370e7ce96888c888349621dc38ff0b533
dc90c4f3
1 parent
54e06019
Use duration property in counting label in order to have the same duration in both animations
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
PNChart/PNCircleChart.m
PNChart/PNCircleChart.m
View file @
dc90c4f
...
...
@@ -157,7 +157,7 @@ displayCountingLabel:(BOOL)displayCountingLabel
[
_circle
addAnimation
:
pathAnimation
forKey
:
@"strokeEndAnimation"
];
_circle
.
strokeEnd
=
[
_current
floatValue
]
/
[
_total
floatValue
];
[
_countingLabel
countFrom
:
0
to
:[
_current
floatValue
]
withDuration
:
1
.
0
];
[
_countingLabel
countFrom
:
0
to
:[
_current
floatValue
]
withDuration
:
self
.
duration
];
// Check if user wants to add a gradient from the start color to the bar color
...
...
Please
register
or
login
to post a comment