Reputation: 1
I have a UICollectionView, while the cell is reused, then crashed. Below is the stack while crash.
0 libobjc.A.dylib objc_msgSend + 32
1 UIKitCore -[UIView(Animation) _removeAllAnimations:] + 100
2 UIKitCore -[UIView(Animation) _removeAllAnimations:] + 244
3 UIKitCore -[UIView(Animation) _removeAllAnimations:] + 244
4 UIKitCore -[UIView(Animation) _removeAllAnimations:] + 244
5 UIKitCore -[UIView(Animation) _removeAllAnimations:] + 244
6 UIKitCore -[UIView(Animation) _removeAllAnimations:] + 244
7 UIKitCore -[UIView(Animation) _removeAllAnimations:] + 244
8 UIKitCore -[UICollectionViewCell prepareForReuse] + 228
9 UIKitCore -[UICollectionView _dequeueReusableViewOfKind:withIdentifier:forIndexPath:viewCategory:] + 400
10 UIKitCore -[UICollectionView dequeueReusableCellWithReuseIdentifier:forIndexPath:] + 104
11 myapp -[myCollectionView collectionView:cellForItemAtIndexPath:]
Can you help me? I'm really not understand why crash in here.
Upvotes: 0
Views: 115
Reputation: 1420
Check you cell identifier. Make sure it is need to set as same with set in the storyboard.
Upvotes: 0