- 在controller的实现文件中,在data source方法里,调用[tableView dequeueReusableCellWithIdentifier:identifier]就抛出异常,Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key imageView.'
这个问题是我第二次遇到了,然后遇到之后就解决不了,以为是自己的代码写的有问题,其实是你XIB定义的TableViewCell 出现了多个属性
IBOutlet 关联,导致无法解析。
在使用的xib进行代码布局的适合,出错了第一应该是排查xib中是否有废旧的iboultet引用。