didi / didi/DoKit

【DoKit生态场景】-描述出现的问题

Open
#1,214 0 comments 0 reactions 1 assignee Claimed by @jtsky View on GitHub
Dominant language
Java
Stars
20.4k
Forks
3.2k
Avg merge
1d 12h
Merged PRs (30d)
2

Description

iOS Crash问题:
集成最新版本SDK后在如下行出现crash:
`DoraemonHomeCloseCell *closeCell = [collectionView dequeueReusableCellWithReuseIdentifier:DoraemonHomeCloseCellID forIndexPath: indexPath];
return closeCell;`

崩溃日志:
`*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Expected dequeued view to be returned to the collection view in preparation for display. When the collection view's data source is asked to provide a view for a given index path, ensure that a single view is dequeued and returned to the collection view. Avoid dequeuing views without a request from the collection view. For retrieving an existing view in the collection view, use -[UICollectionView cellForItemAtIndexPath:] or -[UICollectionView supplementaryViewForElementKind:atIndexPath:]. Dequeued view: ; layer = >; Collection view: ; backgroundColor = ; layer = ; contentOffset: {0, 45}; contentSize: {414, 1150.6239999999998}; adjustedContentInset: {92, 0, 34, 0}; layout: ; dataSource: >'`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.