问题解决啦,贴出代码CGPoint point = CGPointFromString([PointArray objectAtIndex:number]); float durationTime = [self distanceBetweenTwoPoint:protagonist.center point2:point]/MOVE_VELOCITY; [UIView animateWithDuration:durationTime delay:0 opti*****:UIViewAnimationCurveLinear animati*****:^{ [UIView setAnimationCurve:UIViewAnimationCurveLinear]; protagonist.center = point; }completion:^(BOOL finished) { if (finished) { int currentPointNumber = number + 1; [self protagonistMove:PointArray protagonist:protagonist number:currentPointNumber]; } }]; }
hello, world!