我正在尝试添加一个翻转行did选择的每个section.The翻转侧视图应显示所选部分的内容。我试着去理解苹果的过渡教程,但是很难理解。任何与之相关的简单应用程序。
发布于 2009-06-09 09:14:56
你看过Apple的示例代码了吗?这是相当好的布局,并有翻转动画。如果您创建了一个默认的实用程序项目,那么该代码中除了翻转代码之外几乎什么都没有。
生成翻转动画非常简单。您只需删除主视图(在本例中为UITableView),并将新视图添加到superView中,所有这些都在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];https://stackoverflow.com/questions/968509
复制相似问题