I keep on getting an error with window!.rootViewController in appDelegate.
previously the var window: UIWindow? was created
any help or suggestions please?
@saipurva Does the error occur in the sample project for the chapter too?
This have to done in scene delegate instead of app delegate. You have to set these properties in scene delegate instead… the new version of Xcode move the var window: UIWindow? In scene delegate. It will work the same way as before
thank swill try out.
In what function would you put the
detailVC.navigationItem.leftBarButtonItem = splitVC.displayModeButtonItem
line of code in, in the SceneDelegate file?
It doesn’t which make it more difficult to understand what’s going on
I added it to:
scene( _ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions)
This worked for me.
@mcneils Do you still have issues with this?
This topic was automatically closed after 166 days. New replies are no longer allowed.