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

回答編集履歴

2

追記

2016/03/20 15:17

投稿

_Kentarou
_Kentarou

スコア8490

answer CHANGED
@@ -58,4 +58,7 @@
58
58
 
59
59
  ![image](3550513f22bb961b981c8a5e32b90113.png)
60
60
 
61
- ![image2](f3e2a061ae70c4a152bb5c1cdbf4585b.png)
61
+ ![image2](f3e2a061ae70c4a152bb5c1cdbf4585b.png)
62
+
63
+ シュミレータースクショ
64
+ ![image3](6590450f94ddd812f4c4c39f5bbb2d64.png)

1

追記

2016/03/20 15:16

投稿

_Kentarou
_Kentarou

スコア8490

answer CHANGED
@@ -20,8 +20,10 @@
20
20
 
21
21
  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
22
22
 
23
+ // IdentifierをStoryboardで設定したCustomCellにして CustomCellクラスを生成する
23
24
  let cell = tableView.dequeueReusableCellWithIdentifier("CustomCell", forIndexPath: indexPath) as! CustomCell
24
25
 
26
+ // CustomCellに配置したラベルにテキストを設定
25
27
  cell.label1.text = data[indexPath.row].label1
26
28
  cell.label2.text = data[indexPath.row].label2
27
29
  return cell
@@ -52,4 +54,8 @@
52
54
  super.setSelected(selected, animated: animated)
53
55
  }
54
56
  }
55
- ```
57
+ ```
58
+
59
+ ![image](3550513f22bb961b981c8a5e32b90113.png)
60
+
61
+ ![image2](f3e2a061ae70c4a152bb5c1cdbf4585b.png)