티스토리 뷰
1. Main.storyboard 삭제
2. Storybard Name 삭제
Info.plist에서 Storyboard Name이 Main으로 설정이 되어있다. 지워주자.
3. Project TARGETS - Build Setting - Info.plist Value의 UIKIt Main Storyboard File Base Name도 지워주자.
4. SceneDelegate 수정
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(windowScene: windowScene)
let viewController = ViewController()
window?.rootViewController = viewController // 초기 ViewController 설정 (rootViewController)
window?.makeKeyAndVisible()
}
추가)
NavigationController도 RootViewController로 설정해줄 수 있다.
let mainNC = UINavigationController(rootViewController: viewController)
window?.rootViewController = mainNC
'iOS' 카테고리의 다른 글
iOS) Error - Add Transport Security has blocked a cleartext HTTP connection to { ~ } since it is insecure .. (0) | 2022.10.05 |
---|---|
iOS) Naver 지도 SDK 사용하기 (0) | 2022.10.05 |
iOS) UILabel의 속성 변경 (feat. 특정 문자만 변경) (0) | 2022.09.28 |
iOS) UIView에 Border 적용하기 (0) | 2022.09.01 |
iOS) Realm 사용하기 (0) | 2022.08.30 |
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Stack
- BOJ 1935
- swift
- Algorithm
- ios
- crud
- BOJ 10799
- Gradient View
- Sheet Height
- BOJ 17413
- autolayout
- BOJ 17298
- sheetPresentationController
- github
- 2023 회고
- NaverMaps
- BOJ 10808
- UICollectionView Error
- Card CollectionVIew
- 1406 에디터
- BOJ 10820
- UICollectionView banner
- BOJ 10809
- Carousel Effect
- 요시푸스
- git
- BOJ 10866
- CAGradientLayer
- bottom sheet
- Custom Detent
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
글 보관함