質問編集履歴
3
補足情報
title
CHANGED
File without changes
|
body
CHANGED
@@ -37,5 +37,4 @@
|
|
37
37
|
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
|
38
38
|
```
|
39
39
|
こちらを使わないとセルの情報が取得できない?のでしょうか?
|
40
|
-
デリゲートメソッドを入れ子構造にすることは可能なのでしょうか?また、それをする意味はありますか?
|
40
|
+
デリゲートメソッドを入れ子構造にすることは可能なのでしょうか?また、それをする意味はありますか?
|
41
|
-
プログラミング初心者なので、教えていただけると幸いです。
|
2
補足情報
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,6 +13,8 @@
|
|
13
13
|
|
14
14
|
```ここに言語名を入力
|
15
15
|
class SubViewController: UIViewController,UITableViewDelegate,UITableViewDataSource {
|
16
|
+
func remove{
|
17
|
+
~~~
|
16
18
|
let action2 = UIAlertAction(title: "非表示にする", style: UIAlertAction.Style.destructive, handler: { [self]
|
17
19
|
(action: UIAlertAction!) in
|
18
20
|
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
@@ -23,6 +25,7 @@
|
|
23
25
|
|
24
26
|
}
|
25
27
|
}
|
28
|
+
}
|
26
29
|
```
|
27
30
|
|
28
31
|
### 試したこと
|
1
コードを直しました
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
### 該当のソースコード
|
13
13
|
|
14
14
|
```ここに言語名を入力
|
15
|
+
class SubViewController: UIViewController,UITableViewDelegate,UITableViewDataSource {
|
15
16
|
let action2 = UIAlertAction(title: "非表示にする", style: UIAlertAction.Style.destructive, handler: { [self]
|
16
17
|
(action: UIAlertAction!) in
|
17
18
|
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
|
@@ -21,6 +22,7 @@
|
|
21
22
|
return 0.1
|
22
23
|
|
23
24
|
}
|
25
|
+
}
|
24
26
|
```
|
25
27
|
|
26
28
|
### 試したこと
|