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
Zhang Hang
2015-03-01 18:38:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
12924184aaf8536329f02608b5f8b2412c4f50fa
12924184
1 parent
0a28c9c5
Use dot syntax
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
PNChart/PNPieChart.m
PNChart/PNPieChart.m
View file @
1292418
...
...
@@ -225,13 +225,13 @@
-
(
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
setToValue
:
to
]
;
[
arcAnimation
setDelegate
:
delegate
]
;
[
arcAnimation
setTimingFunction
:[
CAMediaTimingFunction
functionWithName
:
kCAMediaTimingFunctionDefault
]
];
[
layer
addAnimation
:
arcAnimation
forKey
:
key
];
[
layer
setValue
:
to
forKey
:
key
];
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
{
...
...
Please
register
or
login
to post a comment