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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
PNChart/PNPieChart.m
PNChart/PNPieChart.m
View file @
1292418
...
...
@@ -227,9 +227,9 @@
{
CABasicAnimation
*
arcAnimation
=
[
CABasicAnimation
animationWithKeyPath
:
key
];
arcAnimation
.
fromValue
=
@0
;
[
arcAnimation
setToValue
:
to
]
;
[
arcAnimation
setDelegate
:
delegate
]
;
[
arcAnimation
setTimingFunction
:[
CAMediaTimingFunction
functionWithName
:
kCAMediaTimingFunctionDefault
]
];
arcAnimation
.
toValue
=
to
;
arcAnimation
.
delegate
=
delegate
;
arcAnimation
.
timingFunction
=
[
CAMediaTimingFunction
functionWithName
:
kCAMediaTimingFunctionDefault
];
[
layer
addAnimation
:
arcAnimation
forKey
:
key
];
[
layer
setValue
:
to
forKey
:
key
];
}
...
...
Please
register
or
login
to post a comment