// 뷰 이동 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=¤tPage=1&listtype=0
[iOS] 글자수에 따라 높이 가변길이 조절 (0) | 2013.02.13 |
---|---|
아이폰 개발자등록방법 (개인사업자용) (1) (8) | 2012.08.23 |
아이폰 채팅 TableView Library (2) | 2012.08.19 |
댓글 영역