質問編集履歴
2
codeの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,13 +46,15 @@
|
|
46
46
|
|
47
47
|
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
|
48
48
|
|
49
|
+
|
50
|
+
|
49
|
-
|
51
|
+
@IBOutlet weak var tableView: UITableView!
|
50
52
|
|
51
53
|
var articles: [articlesStruct] = []
|
52
54
|
|
53
55
|
let cellId = "cellId"
|
54
56
|
|
55
|
-
|
57
|
+
|
56
58
|
|
57
59
|
|
58
60
|
|
@@ -62,9 +64,7 @@
|
|
62
64
|
|
63
65
|
super.viewDidLoad()
|
64
66
|
|
65
|
-
|
66
|
-
|
67
|
-
|
67
|
+
|
68
68
|
|
69
69
|
tableView.frame.size = view.frame.size
|
70
70
|
|
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
tableView.dataSource = self
|
74
74
|
|
75
|
-
|
75
|
+
|
76
76
|
|
77
77
|
navigationItem.title = "Qiita Client"
|
78
78
|
|
@@ -184,25 +184,9 @@
|
|
184
184
|
|
185
185
|
|
186
186
|
|
187
|
-
|
188
|
-
|
189
187
|
@IBOutlet weak var title: UILabel!
|
190
188
|
|
191
|
-
@IBOutlet weak var userName: UILabel!
|
189
|
+
@IBOutlet weak var userName: UILabel!
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
func configure(model: articlesStruct) {
|
198
|
-
|
199
|
-
title.text = model.title
|
200
|
-
|
201
|
-
userName.text = model.userId
|
202
|
-
|
203
|
-
}
|
204
|
-
|
205
|
-
|
206
190
|
|
207
191
|
}
|
208
192
|
|
1
codeの修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,6 +42,8 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
+
|
46
|
+
|
45
47
|
class ViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
|
46
48
|
|
47
49
|
|