質問編集履歴
1
タイトルの変更、誤字の修正
title
CHANGED
@@ -1,1 +1,1 @@
|
|
1
|
-
|
1
|
+
RealtimeDatabaseから情報を取得し、TableViewに反映させる方法
|
body
CHANGED
@@ -16,8 +16,9 @@
|
|
16
16
|
### 発生している問題・エラーメッセージ
|
17
17
|
Firebaseからデータを呼び出すことはできています
|
18
18
|
しかしTableViewCell内のLabelに表示することができません
|
19
|
-
TableViewに表示できるか(Labelなし)試してみましたが表示されませんでした
|
19
|
+
TableViewに表示できるか(Labelなし)試してみましたが表示されませんでした。
|
20
|
+
|
20
|
-
```
|
21
|
+
```TableViewController.swift
|
21
22
|
import UIKit
|
22
23
|
import Firebase
|
23
24
|
import SwiftyJSON
|
@@ -57,14 +58,14 @@
|
|
57
58
|
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
|
58
59
|
let cell = tableView.dequeueReusableCell(withIdentifier: "TableViewCell", for: indexPath) as! TableViewCell
|
59
60
|
// cellのlabelに値を入れます。
|
60
|
-
cell.
|
61
|
+
cell.Title.text = Array_Title[indexPath.row]
|
61
62
|
return cell
|
62
63
|
}
|
63
64
|
|
64
65
|
}
|
65
66
|
|
66
67
|
```
|
67
|
-
```
|
68
|
+
```TableViewCell.swift
|
68
69
|
import UIKit
|
69
70
|
|
70
71
|
class TableViewCell: UITableViewCell {
|