Our code is like this:
@interface LLLineMoreView() <UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
@property (strong, nonatomic) IBOutlet UIView *topLineView;
@end
Exception Category: mach
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
Crashed Thread: 0
CrashDoctor Diagnosis: Attempted to dereference garbage pointer 0x8.
Thread 0 Crashed:
0 CoreFoundation 0x000000018bb3ea7c _CFXNotificationRegistrarAddObserver + [ : 368]
1 CoreFoundation 0x000000018bb3ea0c _CFXNotificationRegistrarAddObserver + [ : 256]
2 CoreFoundation 0x000000018bb3e890 CFXNotificationRegistrarAdd + [ : 576]
3 CoreFoundation 0x000000018bb3e070 _CFXNotificationRegisterObserver + [ : 248]
4 UIKitCore 0x000000018e3a39ac UILabelCommonInit + [ : 188]
5 UIKitCore 0x000000018e8133cc -[UILabel initWithCoder:] + [ : 212]
6 UIFoundation 0x000000019747aaa4 UINibDecoderDecodeObjectForValue + [ : 684]
7 UIFoundation 0x000000019747ac30 UINibDecoderDecodeObjectForValue + [ : 1080]
8 UIFoundation 0x000000019747a6f8 -[UINibDecoder decodeObjectForKey:] + [ : 308]
9 UIKitCore 0x000000018e6c6550 -[UIView initWithCoder:] + [ : 800]
10 UIFoundation 0x000000019747aaa4 UINibDecoderDecodeObjectForValue + [ : 684]
11 UIFoundation 0x000000019747ac30 UINibDecoderDecodeObjectForValue + [ : 1080]
12 UIFoundation 0x000000019747a6f8 -[UINibDecoder decodeObjectForKey:] + [ : 308]
13 UIKitCore 0x000000018e6c6550 -[UIView initWithCoder:] + [ : 800]
14 UIKitCore 0x000000018eccd94c -[UICollectionReusableView initWithCoder:] + [ : 68]
15 UIKitCore 0x000000018eccde3c -[UICollectionViewCell initWithCoder:] + [ : 68]
16 UIKitCore 0x000000018e6c9700 -[UIClassSwapper initWithCoder:] + [ : 1544]
17 UIFoundation 0x000000019747aaa4 UINibDecoderDecodeObjectForValue + [ : 684]
18 UIFoundation 0x000000019747a6f8 -[UINibDecoder decodeObjectForKey:] + [ : 308]
19 UIKitCore 0x000000018e6c6034 -[UIRuntimeConnection initWithCoder:] + [ : 92]
20 UIFoundation 0x000000019747aaa4 UINibDecoderDecodeObjectForValue + [ : 684]
21 UIFoundation 0x000000019747ac30 UINibDecoderDecodeObjectForValue + [ : 1080]
22 UIFoundation 0x000000019747a6f8 -[UINibDecoder decodeObjectForKey:] + [ : 308]
23 UIKitCore 0x000000018e6c9030 -[NSCoder(UIIBDependencyInjectionInternal) _decodeObjectsWithSourceSegueTemplate:creator:sender:forKey:] + [ : 292]
24 UIKitCore 0x000000018e76f1cc -[UINib instantiateWithOwner:options:] + [ : 768]
25 UIKitCore 0x000000018e5eda0c -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + [ : 984]
26 UIKitCore 0x000000018e5ed5b8 -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + [ : 84]
27 lbank-iOS-LBank 0x0000000102bf1270 -[LBKBtmLineMoreView collectionView:cellForItemAtIndexPath:] + [LBKBtmLineMoreView.m : 255]
28 UIKitCore 0x000000018e6678e4 __112-[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:]_block_invoke.394 + [ : 52]
29 UIKitCore 0x000000018e33c828 +[UIView(Animation) performWithoutAnimation:] + [ : 76]
30 UIKitCore 0x000000018e5ee9dc -[UICollectionView _createPreparedCellForItemAtIndexPath:withLayoutAttributes:applyAttributes:isFocused:notify:] + [ : 1208]
31 UIKitCore 0x000000018e5ec178 -[UICollectionView _createVisibleViewsForSingleCategoryAttributes:limitCreation:fadeForBoundsChange:] + [ : 524]
32 UIKitCore 0x000000018e4bcbc8 -[UICollectionView _createVisibleViewsForAttributes:fadeForBoundsChange:notifyLayoutForVisibleCellsPass:] + [ : 300]
33 UIKitCore 0x000000018e4b8d9c -[UICollectionView _updateVisibleCellsNow:] + [ : 3092]
34 UIKitCore 0x000000018e652bc8 -[UICollectionView layoutSubviews] + [ : 288]
35 UIKitCore 0x000000018e34b814 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + [ : 2424]
36 QuartzCore 0x000000018d659498 CA::Layer::layout_if_needed(CA::Transaction*) + [ : 496]
37 QuartzCore 0x000000018d659024 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + [ : 148]
38 QuartzCore 0x000000018d6ae0c4 CA::Context::commit_transaction(CA::Transaction*, double, double*) + [ : 472]
39 QuartzCore 0x000000018d624d8c CA::Transaction::commit() + [ : 648]
40 UIKitCore 0x000000018e3b33f0 _UIApplicationFlushCATransaction + [ : 84]
41 UIKitCore 0x000000018e3b089c __setupUpdateSequence_block_invoke_2 + [ : 332]
42 UIKitCore 0x000000018e3b0710 _UIUpdateSequenceRun + [ : 84]
43 UIKitCore 0x000000018e3b3040 schedulerStepScheduledMainSection + [ : 172]
44 UIKitCore 0x000000018e3b0c5c runloopSourceCallback + [ : 92]
45 CoreFoundation 0x000000018bb64f4c CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + [ : 28]
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: