2009-06-09 22 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]; 
相关问题