我正在编写这段代码,它一直给我这个错误。我有另一个项目的代码相同,但没有给我错误,所以我看不出问题出在哪里。输出是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];
问问题
288 次