質問編集履歴

1

コードを枠に入れた

2019/12/18 10:18

投稿

marogura
marogura

スコア21

test CHANGED
File without changes
test CHANGED
@@ -16,10 +16,18 @@
16
16
 
17
17
 
18
18
 
19
+
20
+
21
+
22
+
19
23
  ### 該当のソースコード
20
24
 
21
25
 
22
26
 
27
+ ```ここに言語名を入力
28
+
29
+ ソースコード
30
+
23
31
  class TimerViewController: UIViewController,UIPickerViewDelegate, UIPickerViewDataSource {
24
32
 
25
33
 
@@ -164,21 +172,15 @@
164
172
 
165
173
  }
166
174
 
175
+ if self.count == Int(self.list2[3]) {
176
+
177
+ timer.invalidate()
178
+
179
+ }
180
+
167
181
  }
168
182
 
169
- if self.count == Int(list2[1])
183
+
170
-
171
- {
172
-
173
-
174
-
175
- timer?.invalidate()
176
-
177
- } else {
178
-
179
-
180
-
181
- }
182
184
 
183
185
  }
184
186
 
@@ -211,3 +213,5 @@
211
213
 
212
214
 
213
215
  }
216
+
217
+ ```