开发者

Universal application error

I'm trying to realize an universal application (for iPhone/iPad), and I'd like to use the same UIViewController to set up the behaviour for both of the devices.

I got a surprising error at launch time, which is :

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
)

I can't figure out where I failed. Furthermore, to avoid any typo problem, I restarted the project, but it ends on t开发者_如何转开发he same error.

The main surprising point is that the application works fine on the iPad simulator, but not on the iPhone one. Perhap's there is a problem with the iPhone simulator ?

Does someone know the answer of this question or ever heard about that kind of problem ?


It looks like you have an outlet called myLabel in your NIB file, but there's no such outlet in your view controller instance.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜