0
키워드가 루핑 중입니다. 저는 펄스와 같은 애니메이션을위한 두 가지 기능을 가지고 있다고 생각합니다. 이것을 루프로 만드는 가장 좋은 방법입니까?반복 애니메이션을 수행하는 가장 좋은 방법은 무엇입니까?
-(void)animationPart1 {
//Do first half of animation here, pulse in, the animation is 0.3 seconds long
[NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(animationPart2) userInfo:nil repeats:NO];
}
-(void)animationPart2 {
//Do second half of animation here, pulse out, the animation is 0.3 seconds long
[NSTimer scheduledTimerWithTimeInterval:0.3 target:self selector:@selector(animationPart1) userInfo:nil repeats:NO];
}
저는 애니메이션을 처음 사용합니다.
도움 주셔서 감사합니다. –