js

Wednesday, June 22, 2022

How to run without Storyboard in Xcode 13.4.1

 1. window = UIWindow(frame: UIScreen.main.bounds)
        let vc = ViewController(nibName: "ViewController", bundle: nil)
        let navController = UINavigationController(rootViewController: vc)
        window?.rootViewController = navController
        window?.makeKeyAndVisible()


2. Comment all scene delegate lines from app delegate

3. Delete main from main interface in proj file

4. Delete scene delegate info from info.plist

5. Set files owner in viewcontroller xib file

6. Set view outlet

7. Run

No comments:

Post a Comment

  Write a Program to Find the Maximum Depth or Height of a Tree Difficulty Level : Easy Last Updated : 21 Jul, 2022 Read Discuss Given ...