我正在尝试实现一个通用应用程序(适用于 iPhone/iPad),并且我想使用相同的 UIViewController 来设置两个设备的行为。
我在启动时遇到了一个令人惊讶的错误,即:
2010-07-15 11:31:03.420 AppUniverselle[2761:207] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x7000670> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key myLabel.'
2010-07-15 11:31:03.421 AppUniverselle[2761:207] Stack: (
29291611,
2421585161,
...
2727445,
2764719,
8884,
8738
)
我不知道我失败的地方。此外,为了避免任何错字问题,我重新启动了项目,但它以同样的错误结束。
令人惊讶的主要一点是,该应用程序在 iPad 模拟器上运行良好,但在 iPhone 上却不行。也许iPhone模拟器有问题?
有人知道这个问题的答案或听说过这种问题吗?