2011-01-27 5 views
0

UIImage에 약간의 흔들림 효과를주기 위해 노력하고 있습니다.uiimage 애니메이션 효과

[UIView setAnimationDelegate:self]; 
      [UIView setAnimationDidStopSelector:@selector(endSwipeAnimation)]; 
      [UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; 
      [UIView setAnimationRepeatCount:10]; 
      [myImage setAlpha:1.0]; 
      [myImage setAlpha:0.7]; 

      [UIView setAnimationRepeatAutoreverses:NO]; 

      [UIView commitAnimations]; 

아이디어를 얻는 방법은 무엇입니까? 사전

+0

현재이 작업의 짧은 비디오 클립과 원하는 작업에 대한 더 자세한 설명을 게시 할 수 있습니까? –

답변

0
[UIView beginAnimations:animationID context:context]; 
[UIView setAnimationDuration:duration]; 

에서

덕분에 누락 ...?

1

애니메이션 사이에 새로운 효과를 추가하거나 변경하고 싶습니다.

먼저 imageView 알파 값을 1 으로 설정 한 다음 알파 값을 0.5로 변경하거나 애니메이션에서 원하는 값을 변경하십시오.

+0

[UIView setAnimationDelegate : self]; [UIView setAnimationDidStopSelector : @selector (endSwipeAnimation)]; [UIView setAnimationCurve : UIViewAnimationCurveEaseOut]; [UIView setAnimationRepeatCount : 10]; [myImage setAlpha : 0.7]; [UIView setAnimationRepeatAutoreverses : NO]; [UIView commitAnimations]; –