- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
这是错误:
* 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/
我是一名优秀的程序员,十分优秀!