teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

TableViewCell について追記

2017/08/15 01:45

投稿

ykws
ykws

スコア1242

answer CHANGED
@@ -10,4 +10,15 @@
10
10
 
11
11
  ```swift
12
12
  tableView.delegate = self
13
- ```
13
+ ```
14
+
15
+ 実行時に下記エラーが発生する場合は `TableViewCell` の設定ができないのが原因です。
16
+
17
+ ```
18
+ *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier MyCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
19
+ ```
20
+
21
+ 設定する箇所は、Storyboardの `TableViewCell` の `Indentifier` です。
22
+ Cell に対しての情報なので、 `TableView` ではありません。
23
+
24
+ ![イメージ説明](467efca9d7c1b58085d84b932cfb7024.png)