상세 컨텐츠

본문 제목

View & imgView Animation Effect

프로그래밍/모바일관련

by jin* 2012. 1. 2. 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


관련글 더보기

댓글 영역