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

質問編集履歴

1

コード抜け漏れ修正

2020/02/27 06:38

投稿

nkrmn_a
nkrmn_a

スコア27

title CHANGED
File without changes
body CHANGED
@@ -34,6 +34,23 @@
34
34
  ```
35
35
 
36
36
  ```swift
37
+ // セルのインスタンスを生成する
38
+ func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
39
+
40
+ // 品番セルを生成
41
+ let cell: hnbnCell = tableView.dequeueReusableCell(withIdentifier:"hnbnCell") as! hnbnCell
42
+
43
+ cell.hnbnTextField.text = hnbnList[indexPath.row]
44
+ cell.hnbnTextField.delegate = cell
45
+ cell.parentView = self
46
+ cell.order = indexPath.row
47
+
48
+ return cell
49
+ }
50
+
51
+ ```
52
+
53
+ ```swift
37
54
  //セル追加ボタン押下時
38
55
  @IBAction func addCellButtonPushed(_ sender: Any) {
39
56
  // dataを追加