回答編集履歴

3

修正

2017/01/21 00:17

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -1,4 +1,4 @@
1
- セルの生成方法とフォントの設定部分を変更しました。
1
+ セルの生成方法とフォントの設定部分を変更しました。(`Swift3`)
2
2
 
3
3
  以下の方法で試してみてください。
4
4
 

2

修正

2017/01/21 00:17

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -1,3 +1,5 @@
1
+ セルの生成方法とフォントの設定部分を変更しました。
2
+
1
3
  以下の方法で試してみてください。
2
4
 
3
5
 

1

修正

2017/01/20 15:07

投稿

_Kentarou
_Kentarou

スコア8490

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  // 再利用するCellを取得する.
12
12
 
13
- let cell : UITableViewCell = menuList.dequeueReusableCell(withIdentifier: "MyCell")!
13
+ let cell = tableView.dequeueReusableCell(withIdentifier: "MyCell", for: indexPath as IndexPath)
14
14
 
15
15
 
16
16
 
@@ -18,9 +18,7 @@
18
18
 
19
19
  cell.textLabel!.text = menu[indexPath.row]
20
20
 
21
- cell.textLabel!.font = UIFont.systemFontSize(9)
22
-
23
- cell.textLabel?.font = UIFont.systemFont(ofSize: 20)
21
+ cell.textLabel?.font = UIFont.systemFont(ofSize: 9)
24
22
 
25
23
 
26
24