嗨,我是 Xcode 的新手,我正在制作一个简单的添加应用程序,当我得到这个时,我刚刚完成了它:
2012-07-17 19:06:55.478 添加[3526:fe03] * 由于未捕获的异常“NSUnknownKeyException”而终止应用程序,原因:“[setValue:forUndefinedKey:]:此类不符合键结果的键值编码。* First throw call stack: (0x13c7022 0x1558cd6 0x13c6ee1 0x9bf022 0x930f6b 0x930edb 0x94bd50 0x23371a 0x13c8dea 0x13327f1 0x23226e 0xd81fc 0xd8779 0xd899b 0x37401 0x37670 0x37836 0x3e72a 0xf596 0x10274 0x1f183 0x1fc38 0x13634 0x12b1ef5 0x139b195 0x12ffff2 0x12fe8da 0x12fdd84 0x12fdc9b 0xfc65 0x11626 0x1b7d 0x1ae5 0x1) terminate called throwing an exception(lldb)
它自动将我带到 main.m,我将提供以下代码:
//
// main.m
// Add
//
// Created by Dominic Kynkor on 7/17/12.
// Copyright (c) 2012 academy of the holy names. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AdditionAppDelegate.h"
int main(int argc, char *argv[])
{
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AdditionAppDelegate class]));
}
}
有谁知道出了什么问题?