본문 바로가기

프로그래밍/iOS,macOS

xcode 11. ios13 미만, storyboard 없이 시작

삭제

프로젝트 General > Deployment Info Main interface 제거
SceneDelegate 제거

Info.plist

Info.plist 의 Main nib file base name 항목 제거 되었는지 확인
Application Scene Manifeset 제거

AppDelegate

class AppDelegate: UIResponder, UIApplicationDelegate {
    var window: UIWindow?
    
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        
        window = UIWindow(frame: UIScreen.main.bounds)
        
        window?.backgroundColor = UIColor.white
        window?.rootViewController = ViewController()
        
        // xib 
        // window?.rootViewController = ViewController(nibName:"Root", bundle:nil)
        
        window?.makeKeyAndVisible()
        return true
    }
}
    

'프로그래밍 > iOS,macOS' 카테고리의 다른 글

CaptureSession 카메라, 마이크  (0) 2020.07.10
Codable for Dictionary  (0) 2020.06.10
UITableView , UICollectionView  (1) 2020.04.14
[iOS] 키보드를 따라 올라오는 뷰  (0) 2020.04.08
[iOS] Google SignIn  (0) 2020.03.30
XCFramework 만들기  (0) 2020.03.27
[iOS] CoreAudio AudioUnit  (0) 2019.10.08
iOS 프레임워크 파이썬 스크립트  (0) 2019.07.23
[iOS] GPUImage  (0) 2019.07.06
xcodebuild  (0) 2019.06.06