0
我正試圖將圖像移回屏幕上的某個點。我正在使用以下代碼:圖像不能移回到正確的位置
[UIView beginAnimations:nil context:nil]; //Move To Start Position With Animation
[UIView setAnimationDuration:0.5];
plustwo.center = CGPointMake(36, 134);
[UIView commitAnimations];
問題是圖像沒有回到屏幕上的正確點。我從if語句開始說明這一點:如果這個圖像與另一個圖像(PanGestureRecogizer)相沖突,它會回到原來的位置。難道我做錯了什麼?
謝謝