Iphone 使用卷曲动画在视图中滑动

Iphone 使用卷曲动画在视图中滑动,iphone,objective-c,interface-builder,gesture-recognition,Iphone,Objective C,Interface Builder,Gesture Recognition,我需要切换视图,用卷曲动画进行切换 我尝试了PageControl(和其他方法-。-),但出于几个原因,这不是我所需要的,所以我会选择手势识别,但我坚持了 我现在的问题是架构。有第一个VC,调用第二个VC,我将(第三个VC的)子视图添加到其中,应该是可切换的。我不知道是否有可能从另一个VC浏览子视图,或者是代码或IB设置不起作用(这是我第一次使用手势识别) 所以到现在为止,当第二个VC加载时,我只加载了4个虚拟子视图。我的GR代码(仅适用于leftswipe,但rightswipe大致相同..)


我需要切换视图,用卷曲动画进行切换
我尝试了PageControl(和其他方法-。-),但出于几个原因,这不是我所需要的,所以我会选择手势识别,但我坚持了

我现在的问题是架构。有第一个VC,调用第二个VC,我将(第三个VC的)子视图添加到其中,应该是可切换的。我不知道是否有可能从另一个VC浏览子视图,或者是代码或IB设置不起作用(这是我第一次使用手势识别)

所以到现在为止,当第二个VC加载时,我只加载了4个虚拟子视图。我的GR代码(仅适用于leftswipe,但rightswipe大致相同..)

你能告诉我这是否基本上可行吗(这只是我的IB设置不正确)?这简直快把我逼疯了!如果你需要任何其他信息,请告诉我


谢谢你的时间和耐心

这是用于卷曲动画的代码

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration: 1];

//setting animation for the current view
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:YES];

//Next ViewController to push
nextPage *detailViewController = [[nextPage alloc] initWithNibName:@"nextPage" bundle:nil];

//Push the next viewcontroller to NavigationController
[self.navigationController pushViewController:detailViewController animated:NO];
[detailViewController release];

//Start the Animation
[UIView commitAnimations];

nextSubview.view将永远不会显示,因为它的superview(self.view)已从上一行的视图层次结构中删除。
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration: 1];

//setting animation for the current view
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp forView:self.navigationController.view cache:YES];

//Next ViewController to push
nextPage *detailViewController = [[nextPage alloc] initWithNibName:@"nextPage" bundle:nil];

//Push the next viewcontroller to NavigationController
[self.navigationController pushViewController:detailViewController animated:NO];
[detailViewController release];

//Start the Animation
[UIView commitAnimations];