0
我试图在行上添加一个翻盖来选择每个部分。翻转侧视图应显示所选部分的内容。我试图了解苹果转换教程,但很难得到。 任何与它相关的简单应用程序。使用单个视图在翻盖上显示不同的内容
我试图在行上添加一个翻盖来选择每个部分。翻转侧视图应显示所选部分的内容。我试图了解苹果转换教程,但很难得到。 任何与它相关的简单应用程序。使用单个视图在翻盖上显示不同的内容
你看过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];