2009-06-09 2 views
0

모든 부분을 선택했는지 확인하려면 플립을 추가하려고합니다. 선택한면의 내용이 플립 측면에 표시되어야합니다. Apple Transition 튜토리얼을 이해하려고 노력했지만 얻는 것은 어렵습니다. 관련된 간단한 응용 프로그램입니다.단일보기를 사용하여 넘김에 다른 내용 표시

답변

1

Apple 샘플 코드를 보셨습니까? 꽤 잘 배치되어 플립 애니메이션이 있습니다. 기본 유틸리티 프로젝트를 만들면 그 코드에는 플립 코드가 거의 없습니다.

플립 애니메이션을 생성하는 것은 매우 쉽습니다. 메인보기 (귀하의 경우에는 UITableView)를 제거하고 새보기를 UIView 애니메이션 블록 내 모든 superView에 추가하십시오.

// start the animation block [UIView beginAnimations:nil context:NULL]; 

// Specify a flip transition 
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; 

[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:YES]; 
[myAppsWindow removeSubView:myUITableView]; // obiously replace these views with the correct views from your app. 
[myAppsWindow addSubview:mybackView]; // you should build this view with your details in it.  
// commit the animations. The animations will run when this invocation of the runloop returns. 
[UIView commitAnimations];