Since iOS 9推出后,Crashalytics 报告了相当多的崩溃事件NSInternalInconsistencyException:
UI集合视图data source is not set
即使设置了数据源。感觉这可能是一个 SDK bug,但我不知道如何避免它。
Details:
- 这种情况仅发生在 iOS 9 上。iOS 9 上出现数百次,7/8 出现零次
- 这发生在主线程上,深入
UIKit
code
- 我正在设置
DataSource
,但看起来像UICollectionView
比DataSource
?
- 没有一致的重现,但根据数据,这种情况每天会发生很多次
Crashalytics
.
Thread : Fatal Exception: NSInternalInconsistencyException
0 CoreFoundation 0x181a91900 __exceptionPreprocess
1 libobjc.A.dylib 0x1810fff80 objc_exception_throw
2 CoreFoundation 0x181a917d0 +[NSException raise:format:]
3 Foundation 0x18240499c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
4 UIKit 0x1869152dc -[UICollectionView _createPreparedSupplementaryViewForElementOfKind:atIndexPath:withLayoutAttributes:applyAttributes:]
5 UIKit 0x1867e8990 -[UICollectionView _updateVisibleCellsNow:]
6 UIKit 0x1867e389c -[UICollectionView layoutSubviews]
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)