线程1:填充选择器时发出SIGABRT信号错误

时间:2012-10-20 00:52:17

标签: iphone xcode ios6

我正在编写此代码并且它一直给我这个错误。我有另一个项目具有相同的代码,不会给我错误,所以我不知道问题是什么。 输出为2012-10-19 20:48:22.266 ScienceReader[5992:c07] -[UIView numberOfComponentsInPickerView:]: unrecognized selector sent to instance 0x74385f0 2012-10-19 20:48:22.268 ScienceReader[5992:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView numberOfComponentsInPickerView:]: unrecognized selector sent to instance 0x74385f0' *** First throw call stack: 调试会话中的行是return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); Viewcontroller.m中的代码是data = [[NSMutableArray alloc] initWithObjects:@"Delta", nil];

0 个答案:

没有答案