我的应用程序在iPod上只显示黑屏 [英] My App shows only a black screen on iPod

查看:122
本文介绍了我的应用程序在iPod上只显示黑屏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序在制作中可以在除iPod touch之外的所有设备中正常工作,iPod touch在启动应用时仅显示黑屏。
有没有人知道哪个可能是问题?
iPod touch正在运行4.2.1 iOS版本。
Thnks

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

推荐答案

正如@ ValentiGoClimb 评论,生成Info.plist文件时Xcode的默认值不正确;它只设置iPad和iPhone的故事板键,而不是iPod Touch。

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.

<key>UIMainStoryboardFile~ipad</key>
<string>iPadStoryboardFileName</string>
<key>UIMainStoryboardFile~iphone</key>
<string>iPhoneStoryboardFileName</string>

我还没有找到一个在Xcode的General Project设置屏幕下编辑它的好方法(这就是为什么这个问题很可能存在的原因),所以在Info.plist文件中手动添加密钥效果很好。

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.

<key>UIMainStoryboardFile</key>
<string>iPhoneStoryboardFileName</string>

这篇关于我的应用程序在iPod上只显示黑屏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆