LoginSignup
0
1

More than 3 years have passed since last update.

'could not dequeue a view of kind: UICollectionElementKindCell with identifier hogeCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'[Swift]

Posted at

概要

CollectionViewを使ったViewControllerに遷移しようとしたら

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'could not dequeue a view of kind: UICollectionElementKindCell with identifier recipesCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'

対策

参考

Xcode - TableViewを表示できない|teratail

segueで別のやつ

VCから引っ張るんじゃなくてUIから引っ張るとめんどいことになるから気をつけて
segueはVC間で繋いで
idだけ指定して
遷移させたいタイミングでperformSegueを書けばいい(この時idを指定する)

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1