如何修改FlowCover示例应用程序以使其水平工作?

时间:2011-04-06 05:38:03

标签: iphone ios opengl-es

FlowCover示例代码提供了Coverflow效果的OpenGL ES实现。

我想改变它,以使其水平工作,而不是垂直工作。我将如何修改此示例以实现此目的?

1 个答案:

答案 0 :(得分:0)

我认为你的意思是在纵向模式而不是横向模式下运行

在FlowCoverViewController.m中,添加纵向方向:

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{
    return ((interfaceOrientation == UIInterfaceOrientationPortrait) ||
            (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
            (interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}