Jin

View & imgView Animation Effect 본문

Programming/Mobile

View & imgView Animation Effect

진:D 2012.01.02 11:03





//  뷰 이동 1
UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:2];
CGAffineTransform transform = CGAffineTransformMakeTranslation(0.0, 60.0);
[[self view] setTransform:transform];
CGAffineTransform transform2 = CGAffineTransformMakeTranslation(0.0, -60.0);
[[self view] setTransform:transform2];
[UIView commitAnimations];



//  뷰 이동  2
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES];
[UIView setAnimationDuration:0.3];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
self.view.frame = CGRectMake(0,480,320,480);
self.view.transform = CGAffineTransformIdentity;  
[UIView commitAnimations];


//책장 넘기기, 화면 반전하기
[swapView addSubview:animationView1];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:swapView cache:YES];
[UIView commitAnimations];



//알파값
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
self.alpha = 0.0;
[UIView commitAnimations];
[self removeFromSuperview];



출처 : http://blog.naver.com/PostView.nhn?blogId=hana_815&logNo=60112080789&viewDate=&currentPage=1&listtype=0


Tag
, , , , , ,
공유하기 링크
0 Comments
댓글쓰기 폼