iPhone 临时分布导致方向错误
当我创建临时配置来远程测试我的应用程序时,景观设置出现故障。该应用程序应该是横向的,主页按钮位于右侧。当我在这里为我的一台设备创建临时配置时,它工作得很好。然而,我的同事远程使用的一台设备以纵向模式显示该应用程序(因此右半部分被切断)。我怀疑我的 plist 信息文件没有保留,但事实并非如此,因为我通过代码直接设置了方向值,但它仍然不起作用。我有点困惑为什么它在一台设备上损坏而不是在另一台设备上损坏。有什么建议吗?
When I created an ad-hoc provision to test my app remotely, the landscape setting malfunctions. The app is supposed to be landscape with the home button on the right. When I create an adhoc provision for one of my devices here, it works fine. One of my devices a coworker is using remotely, however, shows the app in portrait mode (so the right half is cut off). I suspected my plist info file wasn't carrying over but that wasn't it as I set the orientation value outright through code and it still didn't work. I'm a bit befuddled why it breaks on one device and not another. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了原因!
显然,行为不当的 iPod touch 尚未设置邮件功能。我的应用程序调用了一些应用程序内电子邮件功能,并引发了系统对话框,要求用户设置邮件。这反过来又造成了一些问题,显然导致子视图自动旋转到应用程序的方向。我不知道这是否是我的引擎基础代码特有的问题,但希望如果这在将来给某人带来麻烦,这可以有所帮助。
I discovered the cause!
Apparently, the misbehaving ipod touch had not been setup for mail. My app had invoked some in-app email functionality and induced the system dialog asking the user to setup mail. This in turn caused some trouble that apparently resulted in subviews being automatically rotated to the orientation of the app. I do not know if this is a problem specific to the foundation code of my engine, but hopefully if this trips up someone in the future, this can help.