IOS/UIKit
-
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]UICollectionViewDataSource 필수 메소드 cellForItemAt doesn't called 이슈IOS/UIKit 2022. 2. 13. 15:29
IOS 개발 공부를 하며 프로젝트를 진행하던 추적하기 힘든 이슈가 발생해 리포팅한다. 프로젝트는 FastCampus 온라인강의 Diary앱을 만들던 중 다음과 같은 오류가 발생했다. https://storage.googleapis.com/static.fastcampus.co.kr/prod/uploads/202110/123023-24/[패스트캠퍼스]-교육과정소개서-30개-프로젝트로-배우는-ios-앱-개발-with-swift--1-.pdf Delegate를 위임받고, collection view의 cell들을 배치시키는데 부분에 있어 UICollectionViewDataSource protocol 필수 구현 method인 func ...(_ collectionView: UICollectionView, cel..