質問編集履歴

1

コードのタイトル変更

2016/12/01 08:18

投稿

bacchi
bacchi

スコア13

test CHANGED
File without changes
test CHANGED
@@ -16,22 +16,10 @@
16
16
 
17
17
 
18
18
 
19
- ###該当のソースコード
19
+ ###AppDelegate.swift
20
20
 
21
21
  ```Swift3.0
22
22
 
23
- ///////////////////
24
-
25
- //
26
-
27
- // AppDelegate.swift
28
-
29
- //
30
-
31
- //////////////////
32
-
33
-
34
-
35
23
  import UIKit
36
24
 
37
25
 
@@ -114,22 +102,10 @@
114
102
 
115
103
 
116
104
 
117
- ###該当のソースコード
105
+ ###ViewController.swift(遷移前)
118
106
 
119
107
  ```Swift3.0
120
108
 
121
- ///////////////////
122
-
123
- //
124
-
125
- // 遷移前のViewController.swift
126
-
127
- //
128
-
129
- //////////////////
130
-
131
-
132
-
133
109
  import UIKit
134
110
 
135
111
 
@@ -170,9 +146,9 @@
170
146
 
171
147
  func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
172
148
 
173
- print("Num: \(indexPath.row)")
149
+ print("Num: (indexPath.row)")
174
-
150
+
175
- print("Value: \(myItems[indexPath.row])")
151
+ print("Value: (myItems[indexPath.row])")
176
152
 
177
153
 
178
154
 
@@ -226,7 +202,7 @@
226
202
 
227
203
  // Cellに値を設定する.
228
204
 
229
- cell.textLabel!.text = "\(myItems[indexPath.row])"
205
+ cell.textLabel!.text = "(myItems[indexPath.row])"
230
206
 
231
207
 
232
208
 
@@ -240,22 +216,10 @@
240
216
 
241
217
 
242
218
 
243
- ###該当のソースコード
219
+ ###SecondViewController.swift(遷移後)
244
220
 
245
221
  ```Swift3.0
246
222
 
247
- ///////////////////
248
-
249
- //
250
-
251
- // 遷移後のSecondViewController.swift
252
-
253
- //
254
-
255
- //////////////////
256
-
257
-
258
-
259
223
  import UIKit
260
224
 
261
225
 
@@ -284,7 +248,7 @@
284
248
 
285
249
 
286
250
 
287
- Label.text = "\(Number)"
251
+ Label.text = "(Number)"
288
252
 
289
253
  }
290
254