作者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://www.ptt.cc/bbs/MacDev/M.1417157101.A.084.html
※ 編輯: valda (60.248.186.235), 11/28/2014 14:48:07
推 kiii210: 隨便Google一下都一堆呀 11/28 15:00
推 howdiun: CAKeyframeAnimation + CGPathAddEllipseInRect 11/28 15:19
→ howdiun: CGPathAddCurveToPoint 也可以 11/28 15:20
→ valda: 感謝~抓不到關鍵字要打啥 11/28 15:34