作者valda (valda)
看板MacDev
标题[问题] uiview animation
时间Fri Nov 28 14:44:58 2014
请问如何让一个uiview,沿着半径为X的圆绕行一圈或半圈
[UIView animateWithDuration:XX
animations:^{
}completion:^(BOOL complete){
}
];
这method只能让uiview直线的移动
但现在需要的路径是半圆或绕一圈
感谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 60.248.186.235
※ 文章网址: http://webptt.com/cn.aspx?n=bbs/MacDev/M.1417157101.A.084.html
※ 编辑: valda (60.248.186.235), 11/28/2014 14:48:07
1F:推 kiii210: 随便Google一下都一堆呀 11/28 15:00
3F:推 howdiun: CAKeyframeAnimation + CGPathAddEllipseInRect 11/28 15:19
4F:→ howdiun: CGPathAddCurveToPoint 也可以 11/28 15:20
5F:→ valda: 感谢~抓不到关键字要打啥 11/28 15:34