我的应用程序在 iPod 上仅显示黑屏
我的应用程序已投入生产,可在除 iPod touch 之外的所有设备上正常运行,iPod touch 在启动应用程序时仅显示黑屏。 有谁知道这可能是问题所在吗? iPod touch 运行的是 4.2.1 iOS 版本。 谢谢
My app is in productions an works correctly in all devices except the iPod touch, which only shows a black screen when start the app.
Does any body knows which could be the problem?
The iPod touch is running with the 4.2.1 iOS version.
Thnks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
正如 @ValentiGoClimb 在 评论,Xcode 在生成时有错误的默认值Info.plist文件;它仅设置 iPad 和 iPhone 的情节提要键,而不是 iPod Touch。
我还没有找到在 Xcode 的常规项目设置屏幕下编辑此内容的好方法(这就是这个问题最有可能存在的原因),因此在 Info.plist 文件中手动添加密钥效果很好。
As @ValentiGoClimb mentioned in the comment, Xcode has bad defaults when generating the Info.plist file; it only sets the Storyboard keys for iPads and iPhones, not iPod Touches.
I haven't found a good way to edit this under the General Project settings screen in Xcode (which is why this problem most likely exists), so adding the key manually in the Info.plist file works well.
您的 iPod 应该配备视网膜显示屏。
所以只需尝试使用 [email protected] 。
并且请确保资源中有此内容。
Your iPod is supposed to have the retina display.
so just try using [email protected] .
And also please make sure to have this in resources.
试试这个 -
Try this -
对我来说,我使用的是
XIB
而不是Storyboard
。但在 Xcode 10 中,它在目标设置中被设置为“
MainStoryBoard
”作为主界面。所以我已经从“
MainStoryBoard
”更改为“MainWindow
”并为我工作。For me, I’m using
XIB
notStoryboard
.But with Xcode 10 it’s set as “
MainStoryBoard
” as Main Interface in target setting.So I have changed from “
MainStoryBoard
” to “MainWindow
” and worked for me.