Skip to content

Commit 4e8ebad

Browse files
Update AppDelegate.swift
1 parent 40d8d8e commit 4e8ebad

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

AppDelegate.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,13 @@ import UIKit
1111
class AppDelegate: UIResponder, UIApplicationDelegate {
1212

1313

14-
14+
// 應用程式初始化後
1515
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
1616
// Override point for customization after application launch.
1717
return true
1818
}
1919

2020
// MARK: UISceneSession Lifecycle
21-
2221
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
2322
// Called when a new scene session is being created.
2423
// Use this method to select a configuration to create the new scene with.
@@ -31,20 +30,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
3130
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
3231
}
3332

33+
// 應用程式初始化
3434
func applicationDidFinishLaunching(_ application: UIApplication) {
3535
<#code#>
3636
}
3737

38-
//進入前景
39-
func applicationWillEnterForeground(_ application: UIApplication) {
38+
//即將啟動 Running phase
39+
func applicationDidBecomeActive(_ application: UIApplication) {
4040
<#code#>
4141
}
4242

43-
// 即將啟動
44-
func applicationDidBecomeActive(_ application: UIApplication) {
43+
//進入前景 (使用者使用中)
44+
func applicationWillEnterForeground(_ application: UIApplication) {
4545
<#code#>
4646
}
4747

48+
4849
// 停止啟動
4950
func applicationWillResignActive(_ application: UIApplication) {
5051
<#code#>

0 commit comments

Comments
 (0)