728x90
반응형
SMALL

Thread 1: "could not dequeue a view of kind: UICollectionElementKindCell with identifier SpeedTypeCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard"

        self.speedCollectionView.registerCell(type: FilterTypeCell.self)
        self.speedCollectionView.delegate = self
        self.speedCollectionView.dataSource = self

type 부분을 다른 Cell을 호출해서 발생한 문제..!🥲
        self.speedCollectionView.registerCell(type: SpeedTypeCell.self)
        self.speedCollectionView.delegate = self
        self.speedCollectionView.dataSource = self

SpeedTypeCell을 연결하지 않아서 발생한 문제
변경해서 수정해주니 가능!

컨트롤러뷰.registerCell(type:연결할 UI Cell)
컨트롤러와 UI를 연결해주는 코드!!

728x90
반응형
LIST

+ Recent posts