回答編集履歴
1
コード追加。
answer
CHANGED
@@ -1,1 +1,13 @@
|
|
1
|
-
バックグラウンドから復帰するときは、AppDelegateの`applicationWillEnterForeground`が呼ばれますが、これではダメでしょうか?
|
1
|
+
バックグラウンドから復帰するときは、AppDelegateの`applicationWillEnterForeground`が呼ばれますが、これではダメでしょうか?
|
2
|
+
|
3
|
+
[AppDelegate.swift]
|
4
|
+
```swift
|
5
|
+
class AppDelegate: UIResponder, UIApplicationDelegate {
|
6
|
+
:
|
7
|
+
func applicationWillEnterForeground(application: UIApplication) {
|
8
|
+
let alert=UIAlertView(title:"確認", message:"come", delegate:nil,cancelButtonTitle:nil, otherButtonTitles:"OK")
|
9
|
+
alert.show()
|
10
|
+
}
|
11
|
+
:
|
12
|
+
}
|
13
|
+
```
|