Xcode:只需要将游戏锁定为纵向 [英] Xcode: Need to lock game to portrait only
本文介绍了Xcode:只需要将游戏锁定为纵向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚向应用商店发布了一款游戏,并意识到我完全忘记将其锁定为仅限纵向.我需要提交一个更新版本来做到这一点.在这一点上,是否只需转到常规 > 部署信息并取消选中除肖像以外的所有内容,然后将其作为新版本提交?或者我还需要对代码做些什么?请注意,这是一个快速的应用程序.
解决方案
简单.
这是你的方法.
<块引用>这对目标 c 和 swift 都有效.
1.打开您的项目并进行构建设置.
向下滚动到显示 Deployment Info
的标签.
3.从那里你可以看到一个名为 Device Orientation
的部分,这是你需要的地方.像这样选择一个方向.
4 构建项目,大功告成!
I just released a game to the app store and realized I completely forgot to lock it to portrait only. I need to submit an updated version that does just that. At this point, is it enough to just go to general > deployment info and uncheck everything but Portrait and then submit this as a new build? Or do I also need to do something to the code? Please note that it's a swift app.
解决方案
Simple.
Here's how you do it.
This works for both objective c and swift.
1. Open your project and go do your build settings.
Scroll down to the tab that says Deployment Info
.
3. From there you can see a section called Device Orientation
, This is where you need to be. Select an orientation like so.
4 Build the project and you are done!
这篇关于Xcode:只需要将游戏锁定为纵向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文