티스토리 뷰
728x90
반응형
협업 시 info.plist 에서 시작 스토리보드를 설정하다보니 info.plist 파일에서 충돌이 나는 것이 위험이 있다고 생각해서 코드로 시작 스토리보드를 변경하도록 해보았다.
첫번째, 프로젝트 파일의 Main Interface 를 삭제한다.

두번째, info.plist 파일의 Application Scene Manifest 를 펼쳐서 Storyboard Name 을 삭제해준다.

세번째, SceneDelegate.swift 파일에 다음의 코드를 추가해준다.
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
window = UIWindow(frame: windowScene.coordinateSpace.bounds)
window?.windowScene = windowScene
window?.rootViewController = UIStoryboard(name: Const.Storyboard.Name.Splash, bundle: nil).instantiateViewController(withIdentifier: Const.ViewController.Name.Splash)
window?.makeKeyAndVisible()
}
728x90
반응형
'iOS' 카테고리의 다른 글
iOS) UICollectionView 로 Pinterest Layout 구현하기 (0) | 2021.07.26 |
---|---|
iOS) 다크모드 제한시키기 (0) | 2021.07.23 |
iOS) UIStatusBarManager 를 통해서 상태바에 접근하기 (0) | 2021.07.23 |
iOS) UICollectionView 의 vertical,horizontal 유무 programmatically 구현 (0) | 2021.07.23 |
iOS) 노치에 따른 커스텀 상태바 만들기 (0) | 2021.07.23 |
TAG
- YPImagePicker
- WWDC
- Widget
- watchOS
- 서버통신
- RxCocoa
- MOYA
- Swift
- urlsession
- UserDefaults
- projectsetting
- async/await
- WidgetKit
- SwiftUI
- APNS
- Objective-C
- 2022 KAKAO TECH INTERNSHIP
- IOS
- Notification
- configurable widget
- WWDC22
- OpenSourceLibrary
- MVVM
- github
- Algorithm
- Firebase
- Protocol
- containerBackground
- rxswift
- CloneCoding
최근에 올라온 글
최근에 달린 댓글
글 보관함
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
링크
- Total
- Today
- Yesterday