gpt4 book ai didi

Swift MapKit - 当我放大集群时我的 map 崩溃了

转载 作者:行者123 更新时间:2023-11-30 11:23:25 25 4
gpt4 key购买 nike

这是错误:

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]' *** First throw call stack: (0x18525ed8c 0x1844185ec 0x1851f7750 0x18512aa18 0x19621fbcc 0x1960b0e40 0x196128ee8 0x18512d3a0 0x196129ab8 0x1961f8e54 0x196075eac 0x185cab3d4 0x185207aa8 0x18520776c 0x185207010 0x185204b60 0x185124da8 0x187109020 0x18f141758 0x10430352c 0x184bb5fc0) libc++abi.dylib: terminating with uncaught exception of type NSException

我按照这个例子:

https://developer.apple.com/videos/play/wwdc2017/237/

当您放置 100 个标记时,此示例也会崩溃

请帮忙

最佳答案

在将对象添加到数组之前添加检查。但请发布一些代码,以便我们提供更多反馈。但仅从您发布的内容来看,它表明将 nil 的内容插入到数组中。

关于Swift MapKit - 当我放大集群时我的 map 崩溃了,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51032734/

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