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
Emma Makinson
2015-12-18 16:39:40 +0000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
10a0c2cbff00de0611aed616e629134006227043
10a0c2cb
1 parent
1d3158c4
Remove unused animation method
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
PNChart/PNPieChart.m
PNChart/PNPieChart.m
View file @
10a0c2c
...
...
@@ -275,20 +275,6 @@
}
}
-
(
void
)
createArcAnimationForLayer
:
(
CAShapeLayer
*
)
layer
forKey
:
(
NSString
*
)
key
fromValue
:
(
NSNumber
*
)
from
toValue
:
(
NSNumber
*
)
to
delegate
:
(
id
)
delegate
{
CABasicAnimation
*
arcAnimation
=
[
CABasicAnimation
animationWithKeyPath
:
key
];
arcAnimation
.
fromValue
=
@0
;
arcAnimation
.
toValue
=
to
;
arcAnimation
.
delegate
=
delegate
;
arcAnimation
.
timingFunction
=
[
CAMediaTimingFunction
functionWithName
:
kCAMediaTimingFunctionDefault
];
[
layer
addAnimation
:
arcAnimation
forKey
:
key
];
[
layer
setValue
:
to
forKey
:
key
];
}
-
(
void
)
animationDidStop
:
(
CAAnimation
*
)
anim
finished
:
(
BOOL
)
flag
{
[
_descriptionLabels
enumerateObjectsUsingBlock
:
^
(
id
obj
,
NSUInteger
idx
,
BOOL
*
stop
)
{
[
UIView
animateWithDuration
:
0
.
2
animations
:
^
(){
...
...
Please
register
or
login
to post a comment