[英]autorotation exclusive to some view controllers
我一直在寻找答案,但找不到答案,虽然我觉得这是一个简单的问题。
是否可以仅允许在一个视图控制器中旋转? 我正在写一款iphone游戏,我希望能够在用户玩游戏时旋转但不能在菜单中旋转。
感谢您提供的任何帮助
把它放在你的视图控制器中
-(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft );
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.