小编Tar*_*adi的帖子

这个编码器要求从initWithCoder返回被替换的对象:'

我在模拟器3.1.3版本上测试我的应用程序,运行正常.当它来到模拟器3.2或4.0时,它从一开始就崩溃了:

2010-09-28 18:36:39.957 Angeloni[23268:207] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from initWithCoder:'

*** Call stack at first throw:
(
    0   CoreFoundation                      0x0268cb99 __exceptionPreprocess + 185
    1   libobjc.A.dylib                     0x027dc40e objc_exception_throw + 47
    2   CoreFoundation                      0x02645238 +[NSException raise:format:arguments:] + 136
    3   CoreFoundation                      0x026451aa +[NSException raise:format:] + 58
    4   UIKit                               0x005d03fa UINibDecoderDecodeObjectForValue + 2384
    5   UIKit                               0x005d1179 -[UINibDecoder decodeObjectForKey:] + 398
    6   UIKit                               0x004f6d77 -[UIRuntimeConnection initWithCoder:] + 212
    7   UIKit                               0x005d04ca UINibDecoderDecodeObjectForValue …
Run Code Online (Sandbox Code Playgroud)

iphone iphone-sdk-3.0 ios4 ios-simulator

5
推荐指数
1
解决办法
2182
查看次数

标签 统计

ios-simulator ×1

ios4 ×1

iphone ×1

iphone-sdk-3.0 ×1