简体   繁体   English

Xcode 5,XIB本地化导致手机黑屏

[英]Xcode 5, xib localization causes black screen on phone

I have an iPhone app on Xcode 5.0. 我在Xcode 5.0上有一个iPhone应用程序。 I localized a UIViewController .xib file (English and Italian). 我本地化了UIViewController .xib文件(英语和意大利语)。

When running the app on phone and simulator, then loading the ViewController, the device shows a black screen. 在手机和模拟器上运行应用程序,然后加载ViewController时,设备将显示黑屏。 No exception or warning in console. 控制台中没有异常或警告。 Before localization the app was running fine. 本地化之前,该应用运行良好。

Do you have any idea? 你有什么主意吗? Any help will be appreciated. 任何帮助将不胜感激。

First I would try this: 首先,我会尝试这样做:

  1. Quit the simulator 退出模拟器

  2. Clean your project(Under Product, Clean, or shift-cmd-'k') 清理您的项目(在产品下,清理或shift-cmd-'k'下)

  3. Build your project(Under Product, Build, or cmd-'b') 构建您的项目(在Product,Build或cmd-'b'下)

  4. Re-run your application 重新运行您的应用程序

If that does not work. 如果那不起作用。 You can try, with your simulator open, - Go to iOS simulator tab -> click reset content and settings . 您可以在模拟器打开的情况下尝试- Go to iOS simulator tab -> click reset content and settings

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM