Development record of developer who study hard everyday.

레이블이 ios error인 게시물을 표시합니다. 모든 게시물 표시
레이블이 ios error인 게시물을 표시합니다. 모든 게시물 표시
, , ,

must register a nib or a class for the identifier or connect a prototype cell in a storyboard 에러 해결방법

 must register a nib or a class for the identifier or connect a prototype cell in a storyboard 에러 해결방법


ios 개발 블로그


iOS 공부를 하면서 CollectionView를 구현하는데 위와 같은 에러가 발생했다.

유튜브 보면서 코드를 따라치는거라 왜 이런 에러가 발생하는지 난감했는데 구글링해보니까 쉽게 해결방법을 찾을 수가 있었다.

        self.collectionView.register(ArticleCell.self, forCellWithReuseIdentifier: "cell")


위의 코드를 추가하니까 정상작동하였다.

CollectionView에 Cell을 등록하지않아서 발생한 에러였다;;
Share:
Read More