gpt4 book ai didi

ios - -[CLLocation 长度] : unrecognized selector after table display

转载 作者:行者123 更新时间:2023-11-29 02:06:52 28 4
gpt4 key购买 nike

出乎意料的是,在做了一些小的修改后,我的代码开始崩溃:

-[CLLocation length]: unrecognized selector sent to instance 0x1b3739c0.

这发生在应用程序完成表格单元格的显示之后,更准确地说是在退出之后:

- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath

我尝试在代码中的所有长度访问中放置断点,但没有一个被捕获。我还在 [NSObject(NSObject) doesNotRecognizeSelector:] 上设置了一个断点,这实际上被捕获了,但没有提供任何信息。我还调查了崩溃日志,但崩溃线程与我的应用程序的最后联系是在主函数中。我怎样才能发现导致崩溃的程序的要点?

最佳答案

CLLocation 没有 length 方法,请参阅 docs 。如果这不是您的代码(您似乎暗示了这一点),也许它是您的依赖项之一中的某些内容?

顺便说一句,你应该添加一个 exception breakpoint ,它应该捕捉到这一点。

关于ios - -[CLLocation 长度] : unrecognized selector after table display,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29701734/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com