【问题标题】:Setting the nib file results to the simulator work, but the iPhone device not load将nib文件结果设置为模拟器工作,但iPhone设备无法加载
【发布时间】:2010-08-25 12:42:00
【问题描述】:

我将 Target > info > property > main nib file 设置为 MainWindow,在模拟器中,它可以工作,但在设备中,屏幕黑屏,并且没有调用“viewDidLoad”。那有什么问题?谢谢你。

【问题讨论】:

    标签: objective-c iphone xcode


    【解决方案1】:

    值得检查的一件事:您是否正确理解了 NIB 文件名的大小写?

    OS X 区分大小写,因此它会认为MainView.xibmAiNvIeW.xib 相同,但 iPhone 区分大小写,所以他们会被视为不同的文件。

    【讨论】:

      猜你喜欢
      • 2011-05-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-18
      • 2013-07-08
      • 1970-01-01
      相关资源
      最近更新 更多