FlowCover示例代码提供了Coverflow效果的OpenGL ES实现。
我想改变它,以使其水平工作,而不是垂直工作。我将如何修改此示例以实现此目的?
答案 0 :(得分:0)
我认为你的意思是在纵向模式而不是横向模式下运行
在FlowCoverViewController.m中,添加纵向方向:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationPortrait) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeLeft) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}