iOS Swift运行错误" setValue:forUndefinedKey:]:此类不是密钥值编码兼容的密钥sourceIcon。'"

时间:2016-01-24 06:51:08

标签: ios swift

我是swift的新手并且一直在尝试基本的tableviews。

我已经构建了一个简单的应用程序,其中有一个带有图标图像和两个标签的表格单元格,但是当我尝试运行它时,我遇到一个持久性错误,而我似乎无法找到解决方案。

2016-01-24 00:45:55.198 xxxAppNamexxx[15608:5747278] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<xxxAppNamexxx.ItemTableViewCell 0x7ff4f1f3e160> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key sourceIcon.'
*** First throw call stack:
(
    0   CoreFoundation                      0x00000001079fcf45 __exceptionPreprocess + 165
    1   libobjc.A.dylib                     0x0000000109720deb objc_exception_throw + 48
    2   CoreFoundation                      0x00000001079fcb89 -[NSException raise] + 9
    3   Foundation                          0x0000000107dc5a6b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
    4   UIKit                               0x00000001082cd96f -[UIView(CALayerDelegate) setValue:forKey:] + 173
    5   UIKit                               0x00000001085d1a71 -[UIRuntimeOutletConnection connect] + 109
    6   CoreFoundation                      0x000000010793da80 -[NSArray makeObjectsPerformSelector:] + 224
    7   UIKit                               0x00000001085d0454 -[UINib instantiateWithOwner:options:] + 1864
    8   UIKit                               0x000000010835c177 -[UITableView _dequeueReusable

0 个答案:

没有答案