我之前制作了一个按钮,并从情节提要中将其拖到 .h 文件中,然后将其设置为:
@property (weak, nonatomic) IBOutlet UIButton *deleteComment;
然后我意识到我需要一个操作按钮并删除了这个按钮的代码。现在,当我尝试转到此屏幕时,出现此异常:
*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<TopicEditController 0xa027ac0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key edit.'
*** First throw call stack:
系统指向这个点:
int main(int argc, char *argv[])
{
@autoreleasepool
{
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}
有人可以告诉我如何阻止这种情况发生吗?
谢谢!