JXSegmentedView
JXSegmentedView copied to clipboard
iOS15系统上,滚动会崩溃
Last Exception Backtrace: 0 CoreFoundation 0x18147805c __exceptionPreprocess + 220 1 libobjc.A.dylib 0x199992f54 objc_exception_throw + 59 2 CoreAutoLayout 0x199c857f0 _AssertAutoLayoutOnAllowedThreadsOnly + 415 3 CoreAutoLayout 0x199c8a97c -[NSISEngine _optimizeWithoutRebuilding] + 71 4 CoreAutoLayout 0x199c8ca58 -[NSISEngine optimize] + 107 5 CoreAutoLayout 0x199c8513c -[NSISEngine performPendingChangeNotifications] + 115 6 UIKitCore 0x183bde980 -[UIView+ 3496320 (Hierarchy) layoutSubviews] + 499 7 UIKitCore 0x183a25d40 -[UIScrollView layoutSubviews] + 87 8 UIKitCore 0x183a04320 -[UICollectionView layoutSubviews] + 63 9 UIKitCore 0x183a16cc8 -[UIView+ 1629384 (CALayerDelegate) layoutSublayersOfLayer:] + 2619 10 QuartzCore 0x185170280 CA::Layer::layout_if_needed+ 258688 (CA::Transaction*) + 535 11 QuartzCore 0x185162aa8 CA::Layer::layout_and_display_if_needed+ 203432 (CA::Transaction*) + 143 12 QuartzCore 0x1851770b0 CA::Context::commit_transaction+ 286896 (CA::Transaction*, double, double*) + 499 13 QuartzCore 0x185180174 CA::Transaction::commit+ 323956 () + 679 14 QuartzCore 0x1851d7d38 CA::Transaction::release_thread+ 683320 (void*) + 227 15 libsystem_pthread.dylib 0x1f18b5f0c _pthread_tsd_cleanup + 523 16 libsystem_pthread.dylib 0x1f18b8904 _pthread_exit + 83 17 libsystem_pthread.dylib 0x1f18b5498 _pthread_wqthread_exit + 79 18 libsystem_pthread.dylib 0x1f18b5238 _pthread_wqthread + 423 19 libsystem_pthread.dylib 0x1f18b4f50 start_wqthread + 7
是demo就能出现的吗?有没有具体操作呢?手机是什么型号呢?
CrashDoctor Diagnosis: Application threw exception NSInternalInconsistencyException: the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:
Thread 0 Crashed:
0 CoreFoundation 0x0000000188111288 __exceptionPreprocess
1 libobjc.A.dylib 0x00000001a0e0b744 objc_exception_throw
2 Foundation 0x000000018999e360 _userInfoForFileAndLine
3 UIKitCore 0x000000018a81d3d8 -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:]
4 UIKitCore 0x000000018a717308 -[UICollectionView _updateVisibleCellsNow:]
5 UIKitCore 0x000000018a66ba84 -[UICollectionView layoutSubviews]
6 bookclub 0x0000000103b584d0 JXSegmentedCollectionView.layoutSubviews() + [JXSegmentedCollectionView.swift : 26]
7 bookclub 0x0000000103b585c0 @objc JXSegmentedCollectionView.layoutSubviews() + [
NSInternalInconsistencyException the cell returned from -collectionView:cellForItemAtIndexPath: does not have a reuseIdentifier - cells must be retrieved by calling -dequeueReusableCellWithReuseIdentifier:forIndexPath:
CoreFoundation
___exceptionPreprocess + 228
6
UIKitCore
-[UICollectionView layoutSubviews] + 324
7
xxxxxx
layoutSubviews (JXSegmentedCollectionView.swift:29)
8
xxxxxx
layoutSubviews (