Yes I have activated an initial view controller. Do not understand why the screen stays black. As soon as I remove the manifest, the app goes back. Do you have any idea?
I am now a little closer to the goal. I had to paste this code into the scene delegate:
guard let winScene = (scene as? UIWindowScene) else {return}
// Create the root view controller as needed
let vc = ViewController ()
let nc = UINavigationController (rootViewController: vc)
// Create the window. Be sure to use this initializer and not the frame one.
let win = UIWindow (windowScene: winScene)
win.rootViewController = nc
win.makeKeyAndVisible ()
window = win
Now the ViewController is displayed, but everything is crashed. TableView (found nil), present other view controller by button crash. What is going on here?
Does your storyboard has an initial view controller set (with an arrow on the left) ?
Hi Maarek,
Yes I have activated an initial view controller. Do not understand why the screen stays black. As soon as I remove the manifest, the app goes back. Do you have any idea?
thepracticaldev.s3.amazonaws.com/i...
thepracticaldev.s3.amazonaws.com/i...
thepracticaldev.s3.amazonaws.com/i...
I Hi Maarek,
I am now a little closer to the goal. I had to paste this code into the scene delegate:
guard let winScene = (scene as? UIWindowScene) else {return}
// Create the root view controller as needed
let vc = ViewController ()
let nc = UINavigationController (rootViewController: vc)
// Create the window. Be sure to use this initializer and not the frame one.
let win = UIWindow (windowScene: winScene)
win.rootViewController = nc
win.makeKeyAndVisible ()
window = win
Now the ViewController is displayed, but everything is crashed. TableView (found nil), present other view controller by button crash. What is going on here?
Hey! Have you had any resolution to this? I am also experiencing this issue of a black screen while using a Main storyboard.
Hi. I guess I figured it out. The
<key> Storyboard Name </key>
is wrong. It should be
<key> UISceneStoryboardFile </key>
. It made it work for me.
It does not work for me! somebody help me, please.