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
David Bleicher
2015-06-16 07:41:54 -0400
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
344d53b5070890e35a7290b362ce0ecca9edb133
344d53b5
1 parent
a5f7b01a
Change countingLabel to show updated percentage instead of absolute value
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 @
344d53b
...
...
@@ -228,7 +228,7 @@ displayCountingLabel:(BOOL)displayCountingLabel
[
_circle
addAnimation
:
pathAnimation
forKey
:
@"strokeEndAnimation"
];
if
(
_displayCountingLabel
)
{
[
self
.
countingLabel
countFrom
:
fmin
([
_current
floatValue
],
[
_total
floatValue
])
to
:
fmin
([
current
floatValue
],
[
total
floatValue
]
)
withDuration
:
self
.
duration
];
[
self
.
countingLabel
countFrom
:
fmin
([
_current
floatValue
],
[
_total
floatValue
])
to
:
[
current
floatValue
]
/
([
total
floatValue
]
/
100
.
0
)
withDuration
:
self
.
duration
];
}
_current
=
current
;
...
...
Please
register
or
login
to post a comment