回答編集履歴

1

TableViewCell について追記

2017/08/15 01:45

投稿

ykws
ykws

スコア1236

test CHANGED
@@ -23,3 +23,25 @@
23
23
  tableView.delegate = self
24
24
 
25
25
  ```
26
+
27
+
28
+
29
+ 実行時に下記エラーが発生する場合は `TableViewCell` の設定ができないのが原因です。
30
+
31
+
32
+
33
+ ```
34
+
35
+ *** 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'
36
+
37
+ ```
38
+
39
+
40
+
41
+ 設定する箇所は、Storyboardの `TableViewCell` の `Indentifier` です。
42
+
43
+ Cell に対しての情報なので、 `TableView` ではありません。
44
+
45
+
46
+
47
+ ![イメージ説明](467efca9d7c1b58085d84b932cfb7024.png)