Programming
Swift: iOS Programmatic UI
22 กรกฎาคม 2023 • 1 นาที
0

Table of Contents

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
let window = UIWindow(windowScene: windowScene)
window.rootViewController = ViewController()
self.window = window
self.window?.makeKeyAndVisible()
}
คลิกเพื่อแสดงความคิดเห็น