1
UIView 애니메이션이 수행하는 가속 및 감속 애니메이션을 어떻게 제거합니까?UIView 애니메이션 가속 제거
내가 무슨 뜻인지 이해하지 못한다면 애니메이션이 시작될 때 가속화되고 끝까지 도달하면 감속합니다. 나는 애니메이션을 일정한 속도로하고 싶다. 다음은 내 코드가 어떻게 생겼는지를 보여주는 예입니다 (이전 애니메이션 방법을 사용해야합니다).
-(void)animate:(NSString*)animationID finished:(BOOL)finished context:(void*)context {
[UIView beginAnimations:nil context:nil];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDidStopSelector:@selector(animateStop:finished:context:)];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:3];
Motion.center = (*PathPoints)[Location];
[UIView commitAnimations];
}
아 완벽한, 난 그것 때문에에있는 용어 곡선 setAnimationCurve 보지 않았다. 그것이 서클 등과 관련이 있다는 것을 알았습니다. 애쉬 감사. –
나를 위해 작동하지 않습니다. – Aitul