1

所以我的应用程序在这里崩溃:

- (void)showMenu
{
MenuViewController *menuVC = [[MenuViewController alloc] initWithStyle:UITableViewStylePlain];
NSLog(@"between the two things");
[self.navigationController pushViewController:menuVC animated:YES];
 NSLog(@"after it was pushed");
}

第一个 NSLog 有效,但第二个无效。我有一个相同的 showSettings 函数,所以错误应该在 MenuViewController 中。我得到的错误说:

2013-09-22 02:12:05.308 Mhacks[13947:c07] *** Terminating app due to uncaught exception'
NSUnknownKeyException', reason: '[<MenuViewController 0xc3c6600> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key rearTableView.']

*** First throw call stack:
(0x1c98012 0x10d5e7e 0x1d20fb1 0xb81e41 0xb035f8 0xb030e7 0xb2db58 0x237019 0x10e9663 0x1c9345a 0x235b1c 0xfa7e7 0xfadc8 0x24928e 0xfaff8 0xfb232 0xfb4da 0x1128e5 0x1129cb 0x112c76 0x112d71 0x11389b 0x113e93 0x113a88 0x28c3 0x10e9705 0x1d2c0 0x1d258 0xde021 0xde57f 0xdd6e8 0x4ccef 0x4cf02 0x2ad4a 0x1c698 0x1bf3df9 0x1bf3ad0 0x1c0dbf5 0x1c0d962 0x1c3ebb6 0x1c3df44 0x1c3de1b 0x1bf27e3 0x1bf2668 0x19ffc 0x1d0d 0x1c35 0x1)

libc++abi.dylib:终止调用抛出异常

我已经搜索了这个项目并且“rearTableView”没有在任何地方使用(我在某个时候使用过它,但我删除了那个类以及与之相关的所有内容)

我还多次清理了我的项目。有谁知道发生了什么?谢谢!

4

1 回答 1

1

rearTableView您可能仍然在笔尖中有参考。打开相关的 nib,选择 File's Owner,然后检查 Connections 检查器。如果您在此处看到后表视图,请使用 x 按钮将其删除。

于 2013-09-22T06:21:35.487 回答