質問編集履歴

1

コード抜け漏れ修正

2020/02/27 06:38

投稿

nkrmn_a
nkrmn_a

スコア27

test CHANGED
File without changes
test CHANGED
@@ -70,6 +70,40 @@
70
70
 
71
71
  ```swift
72
72
 
73
+ // セルのインスタンスを生成する
74
+
75
+ func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
76
+
77
+
78
+
79
+ // 品番セルを生成
80
+
81
+ let cell: hnbnCell = tableView.dequeueReusableCell(withIdentifier:"hnbnCell") as! hnbnCell
82
+
83
+
84
+
85
+ cell.hnbnTextField.text = hnbnList[indexPath.row]
86
+
87
+ cell.hnbnTextField.delegate = cell
88
+
89
+ cell.parentView = self
90
+
91
+ cell.order = indexPath.row
92
+
93
+
94
+
95
+ return cell
96
+
97
+ }
98
+
99
+
100
+
101
+ ```
102
+
103
+
104
+
105
+ ```swift
106
+
73
107
  //セル追加ボタン押下時
74
108
 
75
109
  @IBAction func addCellButtonPushed(_ sender: Any) {