반응형
반응형
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 ()
}
반응형
'iOS > UIKit' 카테고리의 다른 글
Swift) UIColor(RandomColor), 랜덤 컬러 뽑기 (0) | 2023.07.25 |
---|---|
UITextField(Editing Did End , Editing Did End On Exit) 이벤트 (0) | 2023.07.19 |
iOS) 스토리보드 라벨 텍스트 멀티라인 설정 (0) | 2023.05.11 |
iOS) Alert 알림창 띄우기 (0) | 2023.04.03 |
iOS) swift 테두리, UIView 모서리 둥글게 만들기 (0) | 2023.03.30 |