且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

iphone应用程序崩溃

更新时间:2022-05-19 00:04:29

The error message: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compatible键 customCell.'

The error message: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key customCell.'

... 表示您的 xib 正在引用名为customCell"的 IBOutlet,但您的视图控制器不再具有该 IBOutlet.您要么需要从 xib 中删除 customCell 引用,要么将 IBOutlet 属性添加到名为customCell"的视图控制器中.

... means that your xib is referencing an IBOutlet named "customCell" but your view controller doesn't have that IBOutlet anymore. You either need to remove the customCell reference from your xib or add an IBOutlet property to your view controller named "customCell".