2011-10-29 81 views
0

我移動一個UIImageView與下面的動畫:iPhone動畫選項

[UIView animateWithDuration:.5 delay:0 options:(UIViewAnimationCurveLinear | UIViewAnimationOptionAllowUserInteraction) 
       animations:^{ 
        myImage.frame = CGRectOffset(myImage.frame, myImageOffset.x, myImageOffset.y); 
       } 
       completion:^(BOOL finished){ 
       } 
]; 

的問題是圖像開始緩慢移動,然後加速和結束動畫之前再次減慢。 UIViewAnimationCurveLinear選項是否應該使動畫以恆定速率執行?

回答