iOS/UIKit

iOS) 네비게이션 컨트롤러

skyiOS 2023. 5. 15. 00:52
반응형
반응형

 

 func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
        // If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
        // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
       
       guard let windowScene = (scene as? UIWindowScene) else { return }
       
        window = UIWindow(windowScene: windowScene)
        let naviVC = UINavigationController (rootViewController: ViewController () )
        window?.rootViewController = naviVC
        window?.makeKeyAndVisible ()
        
    }

 

반응형