-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Printing description of 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: 0x7f85c04d6230; baseClass = UICollectionViewCell; frame = (0 861.667; 393 52.4); backgroundColor = <UIDynamicSystemColor: 0x600001cb0680; name = systemBackgroundColor>; layer = <CALayer: 0x600000858520>>; Collection view: <UICollectionView: 0x7f85c21ef000; frame = (0 97.6667; 393 754.333); clipsToBounds = YES; gestureRecognizers = <NSArray: 0x60000067b120>; backgroundColor = <UIDynamicSystemColor: 0x600001cb0680; name = systemBackgroundColor>; layer = <CALayer: 0x60000094f4e0>; contentOffset: {0, 160.33333333333334}; contentSize: {393, 955.952}; adjustedContentInset: {0, 0, 34, 0}; layout: <UICollectionViewFlowLayout: 0x7f85c04487a0>; dataSource: <DoraemonHomeViewController: 0x7f85c480b600>>
iOS模拟器: iphone16 iOS18.2