-
could not dequeue a view of kind: UICollectionElementKindCell with identifier ... - must register a nib or a class for the identifier or connect a prototype cell in a storyboard 이슈IOS/UIKit 2022. 2. 13. 15:38
컴포넌트를 dequeueReusable 메소드를 사용해 배치할때 reusable view identifier를 설정하지 않아 발생하는 오류
해결방법
본 글에선 스토리보드 기준으로 설명한다.
1. 문제가 된 컴포넌트를 찾는다.
2. dequeueReusable에서 정의한 식별자로 inspector영역에서 설정한다.
collectionView.dequeueReusableCell(withReuseIdentifier: "DiaryCell", for: indexPath) as?
'IOS > UIKit' 카테고리의 다른 글
[IOS]UICollectionViewDataSource 필수 메소드 cellForItemAt doesn't called 이슈 (4) 2022.02.13