iOS 8 autorotate rotates images off the screen

倾然丶 夕夏残阳落幕 提交于 2019-12-06 09:31:00

I've got the issue with cocos1.0 as well when I compile for ios8. In my code I found that I did have a UIViewController that is used as the root view controller (its child is in the EAGLView used by Cocos2D).

The fix I found is to comment the following method from my UIViewController

-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration

I've done quick test on ios8 and ios7, and it works

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!