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

質問編集履歴

3

補足情報

2021/06/25 07:04

投稿

Himukinman
Himukinman

スコア0

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

補足情報

2021/06/25 07:04

投稿

Himukinman
Himukinman

スコア0

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

コードを直しました

2021/06/24 08:08

投稿

Himukinman
Himukinman

スコア0

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
  ### 試したこと