300x250 willConnectto1 스토리보드 없이 코드로 뷰 구현하기 1.스토리보드 파일을 삭제 2.SceneDelegate파일에서 scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) 함수에 윈도우 설정을 위한 코드를 작성 // 뷰를 스토리보드 없이 만들 때 준비 // 윈도우를 새롭게 초기화 하는 과정 guard let windowScene = (scene as? UIWindowScene) else { return } window = UIWindow(windowScene: windowScene) window?.backgroundColor = .systemBackground window?.rootViewControlle.. 2021. 10. 26. 이전 1 다음 300x250