하나의 간단한 질문 :이 오래된 패션 애니메이션의 예입니다iPhone - UIView beginAnimations 대신 animateWithDuration을 사용하면 어떤 이점이 있습니까?
:이
[UIView animateWithDuration:0.5 animations:^{
[base setTransform:rotate];
[base setCenter:newCenter];
}];
처럼 쓸 수
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[base setTransform:rotate];
[base setCenter:newCenter];
[UIView commitAnimations];
어떤 이점이 새로운를 사용하여 애니메이션을 재 작성에있다 형태?
어떤 이득이 있어야합니다. 그렇지 않으면 Apple이 새로운 기능을 수행하지 못합니다.
뭐라고하시오?
감사합니다. 이제 내 코드가 4.x 용이므로 새 폼을 사용하여 다시 작성합니다. – SpaceDog