2009-06-09 7 views

答えて

1

あなたはAppleのサンプルコードを見ましたか?それはかなりうまくレイアウトされており、フリップアニメーションを持っています。あなたがデフォルトのユーティリティプロジェクトを作成した場合、そのコードにはフリップコードはほとんどありません。

フリップアニメーションの生成は非常に簡単です。メインビュー(あなたの場合はUITableView)を削除し、新しいビューをUIViewアニメーションブロック内のすべてのスーパービューに追加するだけです。

// 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];