File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,13 @@ import UIKit
11
11
class AppDelegate : UIResponder , UIApplicationDelegate {
12
12
13
13
14
-
14
+ // 應用程式初始化後
15
15
func application( _ application: UIApplication , didFinishLaunchingWithOptions launchOptions: [ UIApplication . LaunchOptionsKey : Any ] ? ) -> Bool {
16
16
// Override point for customization after application launch.
17
17
return true
18
18
}
19
19
20
20
// MARK: UISceneSession Lifecycle
21
-
22
21
func application( _ application: UIApplication , configurationForConnecting connectingSceneSession: UISceneSession , options: UIScene . ConnectionOptions ) -> UISceneConfiguration {
23
22
// Called when a new scene session is being created.
24
23
// Use this method to select a configuration to create the new scene with.
@@ -31,20 +30,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
31
30
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
32
31
}
33
32
33
+ // 應用程式初始化
34
34
func applicationDidFinishLaunching( _ application: UIApplication ) {
35
35
< #code#>
36
36
}
37
37
38
- //進入前景
39
- func applicationWillEnterForeground ( _ application: UIApplication ) {
38
+ //即將啟動 Running phase
39
+ func applicationDidBecomeActive ( _ application: UIApplication ) {
40
40
< #code#>
41
41
}
42
42
43
- // 即將啟動
44
- func applicationDidBecomeActive ( _ application: UIApplication ) {
43
+ //進入前景 (使用者使用中)
44
+ func applicationWillEnterForeground ( _ application: UIApplication ) {
45
45
< #code#>
46
46
}
47
47
48
+
48
49
// 停止啟動
49
50
func applicationWillResignActive( _ application: UIApplication ) {
50
51
< #code#>
You can’t perform that action at this time.
0 commit comments