![](/img/trans.png)
[英]Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFType next]: unrecognized selector sent to instance '
[英]*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MKUserLocation annotationType]: unrecognized selector
尝试添加用户位置时,我收到此错误。 我有一个表格视图,当我尝试滚动时,出现此错误。 我是xcode的新手。
*由于未捕获的异常'NSInvalidArgumentException'而终止应用程序,原因:'-[[MKUserLocation注解类型]:无法识别的选择器已发送到实例0x803f090'
任何帮助深表感谢。
MKUserLocation没有注释类型方法。 您正在向MKUserLocation发送一条消息,它不知道如何处理。
我以前遇到过这种情况,通常是因为简单且不明显的错误类型,即格式错误-没有调用基于意外格式的函数而键入错误。
我用了:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(ABC:) ....name:@"UIDeviceBatteryLevelDidChangeNotification" object:nil];
我声明的“ ABC”功能不是基于预期的功能格式。
代替:
- (void) ABC:(NSNotification *)notification
我用了:
- (NSString *)DDD
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.