Xcode performSelector:@选择器错误
我试图让这个xcode项目工作,但当它达到这个方法时:Xcode performSelector:@选择器错误,xcode,delegates,controller,selector,Xcode,Delegates,Controller,Selector,我试图让这个xcode项目工作,但当它达到这个方法时: - (void)xmlReaderDidFinishedParsingDocument{ [[[UIApplication sharedApplication] delegate] performSelector:@selector(setControllersBanner)]; } 显示以下错误: *** Terminating app due to uncaught exception 'NSInvalidArgumentEx
- (void)xmlReaderDidFinishedParsingDocument{
[[[UIApplication sharedApplication] delegate] performSelector:@selector(setControllersBanner)];
}
显示以下错误:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RadioStationAppDelegate setControllersBanner]: unrecognized selector sent to instance 0x5e66940'
有人可以告诉我为什么它会抛出这个错误消息,提前谢谢 RadioStationAppDelegate未实现setControllersBanner方法。检查你的应用程序代理实现我让它在主控制器中实现