0
我的意圖是移動一個UIView對象。UIView線性動畫移動視圖
我用於此的代碼是:
[UIView animateWithDuration:(biggestViewWidth * 0.005) delay:1.0 options:UIViewAnimationOptionCurveLinear animations:^{
//
[view setFrame:CGRectMake(0, view.frame.origin.y, view.frame.size.width, view.frame.size.height)];
// View verschieben
[view setFrame:CGRectMake(-view.frame.size.width - 10, view.frame.origin.y, view.frame.size.width, view.frame.size.height)];
} ...
但作爲是所示的視圖的例子是線性移動到新的x位置。是否有可能說動畫應該向左走20步,例如越來越多?例如: startX = 0; 1. = -20; 2. = -40; 。 。 。
你可以張貼我的問題的一個形而下的例子。會很有幫助,因爲我不明白。 –