From 34c8e6663d4265957b3b380fffae0b910e966c87 Mon Sep 17 00:00:00 2001 From: bluesea <307723040@qq.com> Date: Sun, 7 Apr 2024 17:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93=E4=BD=9C=E5=A4=87=E6=B3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SwiftProject/SwiftProject/AppDelegate.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/SwiftProject/SwiftProject/AppDelegate.swift b/SwiftProject/SwiftProject/AppDelegate.swift index df1266f..941b0fb 100644 --- a/SwiftProject/SwiftProject/AppDelegate.swift +++ b/SwiftProject/SwiftProject/AppDelegate.swift @@ -87,6 +87,21 @@ class AppDelegate: UIResponder, UIApplicationDelegate { // NotificationCenter.default.post(name: Notification.Name(rawValue: "NSZZHHasNewWindowExternal"), object: self, userInfo: ["newwindow":self.newWindow!]) // return UISceneConfiguration(name: "External configuration", sessionRole: connectingSceneSession.role) // } + + +// func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { +// print("appdelegate configurationForConnecting.....") +// let sceneConfiguration: UISceneConfiguration +// +// if connectingSceneSession.role == UISceneSession.Role.windowExternalDisplayNonInteractive { +// sceneConfiguration = UISceneConfiguration.init(name: "External", sessionRole: connectingSceneSession.role) +// +// } else { +// sceneConfiguration = UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) +// } +// +// return sceneConfiguration +// } }