質問編集履歴
2
コンソールに状況を出力してみました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -53,4 +53,31 @@
|
|
53
53
|
|
54
54
|
4/21追記
|
55
55
|
TableView の紐付けは以下の通りになっております。
|
56
|
-

|
56
|
+

|
57
|
+
|
58
|
+
コンソールに状況を出力してみました
|
59
|
+
```swift
|
60
|
+
override func viewDidLoad() {
|
61
|
+
super.viewDidLoad()
|
62
|
+
callAPI()
|
63
|
+
|
64
|
+
print("tableView: (String(describing: tableView))")
|
65
|
+
print("tableView.delegate: (String(describing: tableView.delegate))")
|
66
|
+
print("tableView.dataSource: (String(describing: tableView.dataSource))")
|
67
|
+
}
|
68
|
+
|
69
|
+
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
|
70
|
+
print("numberOfRowsInSection")
|
71
|
+
return 1
|
72
|
+
}
|
73
|
+
```
|
74
|
+
結果は以下の通りです。
|
75
|
+
```
|
76
|
+
tableView: Optional(<UITableView: 0x7fcb44879e00; frame = (0 88; 414 774); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x6000004d3690>; layer = <CALayer: 0x600000ad5f40>; contentOffset: {0, 0}; contentSize: {0, 0}; adjustedContentInset: {0, 0, 0, 0}; dataSource: <breeding_recoder.RecordTableController: 0x7fcb42f06930>>)
|
77
|
+
tableView.delegate: Optional(<breeding_recoder.RecordTableController: 0x7fcb42f06930>)
|
78
|
+
tableView.dataSource: Optional(<breeding_recoder.RecordTableController: 0x7fcb42f06930>)
|
79
|
+
numberOfRowsInSection
|
80
|
+
numberOfRowsInSection
|
81
|
+
numberOfRowsInSection
|
82
|
+
numberOfRowsInSection
|
83
|
+
```
|
1
TableViewの紐付けについて画像を載せました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -47,4 +47,10 @@
|
|
47
47
|
バージョンは以下の通りです。
|
48
48
|
|
49
49
|
Swift:5.2.2
|
50
|
-
Xcode:11.4.1
|
50
|
+
Xcode:11.4.1
|
51
|
+
|
52
|
+
### 追記
|
53
|
+
|
54
|
+
4/21追記
|
55
|
+
TableView の紐付けは以下の通りになっております。
|
56
|
+

|