質問編集履歴

1

2019/07/19 19:36

投稿

mana_mana419
mana_mana419

スコア27

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,10 @@
1
1
  ただいまswiftのローカルプッシュ通知を学んでおり、その中でTimerを使う機会がありました。
2
2
 
3
- 参加書などを参考にし、なんとか下のプログラムを完成させることができ、ビルドも成功しました。```swift
3
+ 参加書などを参考にし、なんとか下のプログラムを完成させることができ、ビルドも成功しました。
4
+
5
+
6
+
7
+ ```swift
4
8
 
5
9
 
6
10
 
@@ -148,35 +152,7 @@
148
152
 
149
153
  let request4 = UNNotificationRequest(identifier: "ID5", content: content4, trigger: trigger4)
150
154
 
151
- UNUserNotificationCenter.current().add(request4,withCompletionHandler: nil)
155
+ UNUserNotificationCenter.current().add(request4,withCompletionHandler:nil)
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
- }
160
-
161
-
162
-
163
- /*
164
-
165
- // MARK: - Navigation
166
-
167
-
168
-
169
- // In a storyboard-based application, you will often want to do a little preparation before navigation
170
-
171
- override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
172
-
173
- // Get the new view controller using segue.destination.
174
-
175
- // Pass the selected object to the new view controller.
176
-
177
- }
178
-
179
- */
180
156
 
181
157
 
182
158