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

Aperta
#1,214 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@jtsky ci sta già lavorando.

Dal 3/12/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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: <DoraemonHomeCell: 0x12e4d4780; baseClass = UICollectionViewCell; frame = (0 1051.5; 414 55.2); backgroundColor = <UIDynamicSystemColor: 0x114436000; name = systemBackgroundColor>; layer = <CALayer: 0x11d3be1a0>>; Collection view: <UICollectionView: 0x11d3d0000; frame = (0 0; 414 896); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x11d3c95c0>; backgroundColor = <UIDynamicSystemColor: 0x114436000; name = systemBackgroundColor>; layer = <CALayer: 0x11d3bd1e0>; contentOffset: {0, 45}; contentSize: {414, 1150.6239999999998}; adjustedContentInset: {92, 0, 34, 0}; layout: <UICollectionViewFlowLayout: 0x1144e8a00>; dataSource: <DoraemonHomeViewController: 0x11d1aa000>>'

Lingua principale
Java
Stelle
20.4k
Fork
3.2k
Merge medio
43m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di didi/DoKit

Tutte le issue di didi/DoKit

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.