當我爲視圖的變換設置動畫時,在第一個動畫完成之前重置另一個動畫中的變化,一切都很好(以旋轉顯示)。動畫順利切換到新的目標:UIView縮放動畫超時發生變化
但我這樣做有規模的時候,動畫輝煌過沖:
這裏是斷碼:
UIView.animateWithDuration(1) {
self.someView.layer.transform = CATransform3DMakeScale(0.001, 0.001, 1)
}
UIView.animateWithDuration(1,
delay: 0.5,
options: nil,
animations: {
self.someView.layer.transform = CATransform3DIdentity
}, completion: nil
)
有沒有其他人看過?難道我做錯了什麼?
編輯:有沒有一個很好的解決方法?編輯2:我相信這是this question的副本,並且我正在投票結束。
可能重複[製作具有UIViewAnimationOptionBeginFromCurrentState工作不正常transform.scale(http://stackoverflow.com/questions/26543763/ animate-transform-scale-with-uiviewanimationoptionbeginfromcurrentstate-not-work) – s4y 2015-04-01 21:43:53