Invalid update: invalid number of items on UICollectionView

2022. 1. 24. 15:30iOS/Xcode Error

728x90
반응형

2022-01-24 15:00:51.233491+0900 PhotoFetch[32459:1735764] [UICollectionView] Performing reloadData as a fallback — Invalid update: invalid number of items in section 0. The number of items contained in an existing section after the update (1) must be equal to the number of items contained in that section before the update (6), plus or minus the number of items inserted or deleted from that section (1 inserted, 0 deleted) and plus or minus the number of items moved into or out of that section (0 moved in, 0 moved out). Collection view: <UICollectionView: 0x118026400; frame = (0 183; 375 0); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x2831836f0>; layer = <CALayer: 0x283fcfce0>; contentOffset: {0, 0}; contentSize: {375, 706}; adjustedContentInset: {0, 0, 0, 0}; layout: <UICollectionViewFlowLayout: 0x117d0c720>; dataSource: <PhotoFetch.PhotoFetchViewController: 0x117e09d40>>

 

728x90
반응형