回答編集履歴

1

コード追加。

2016/01/21 02:24

投稿

fuzzball
fuzzball

スコア16731

test CHANGED
@@ -1 +1,27 @@
1
1
  バックグラウンドから復帰するときは、AppDelegateの`applicationWillEnterForeground`が呼ばれますが、これではダメでしょうか?
2
+
3
+
4
+
5
+ [AppDelegate.swift]
6
+
7
+ ```swift
8
+
9
+ class AppDelegate: UIResponder, UIApplicationDelegate {
10
+
11
+ :
12
+
13
+ func applicationWillEnterForeground(application: UIApplication) {
14
+
15
+ let alert=UIAlertView(title:"確認", message:"come", delegate:nil,cancelButtonTitle:nil, otherButtonTitles:"OK")
16
+
17
+ alert.show()
18
+
19
+ }
20
+
21
+ :
22
+
23
+ }
24
+
25
+ ```
26
+
27
+