0
我有一個簡單的動畫,將視圖從一個位置移動到另一個位置。動畫功能,除了正常的事實,是不遵循持續時間在方法聲明中設置...UIView animateWithDuration不遵守持續時間
[UIView beginAnimations:@"listAnimationIn" context:nil];
[UIView animateWithDuration:1.0
delay:1.0
options:UIViewAnimationCurveLinear
animations:^{
lvc.view.frame = CGRectMake(0, 0, 320, 480);
}
completion:nil];
[UIView commitAnimations];
延遲工作,但動畫運行FAST無論我把什麼價值爲持續時間(我試過從0.5到2000的值)。我也嘗試了幾個UIViewAnimationCurve
選項,似乎沒有任何工作。
我錯過了什麼嗎?
賈森,我的男人!搞定了。謝謝一堆! – CoderMarkus