
[iOS] [Error 해결] : Exception NSException * "could not dequeue a view of kind: UICollectionElementKindCell with identifier PhotoCell
·
iOS | Swift
콜렉션 뷰 세팅을 하던 도중 에러가 발생했다 알고보니 cell 의 Collection Reusable View 에 넣어야 할 Id 를 잘못하고 Identify 의 Restoration ID 에 넣었던 것... 심지어 let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "PhotoCell", for: indexPath) 위 코드에서도 아이디에 내가 오타를 넣어놨다 다음부터는 그냥 아예 복사해서 넣는 습관을 들여야 겠다...