Iphone 如何修改FlowCover示例应用程序使其水平工作?
示例代码提供了coverflow效果的OpenGL ES实现Iphone 如何修改FlowCover示例应用程序使其水平工作?,iphone,ios,opengl-es,Iphone,Ios,Opengl Es,示例代码提供了coverflow效果的OpenGL ES实现 我想改变这一点,以使其工作水平,而不是垂直。如何修改此示例以实现此目的?我认为您的意思是以纵向模式而不是横向模式运行 在FlowCoverViewController.m中,添加纵向方向: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return ((interfaceOrienta
我想改变这一点,以使其工作水平,而不是垂直。如何修改此示例以实现此目的?我认为您的意思是以纵向模式而不是横向模式运行 在FlowCoverViewController.m中,添加纵向方向:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationPortrait) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}
谢谢你的回复,它解决了方向问题,但封面会滚动到水平方向,但我想让这个滚动到垂直方向意味着从上到下或从下到上进入纵向模式。谢谢。请回答。@Nick