Andrew Bancroft 6/7/2019

Accessing the Root View Controller at Launch on iOS 13 with SceneDelegate

Read Original

This article explains how to access the root view controller at app launch in iOS 13, where the introduction of SceneDelegate shifted the responsibility from the traditional AppDelegate. It provides code examples showing the old approach in AppDelegate's didFinishLaunchingWithOptions method and the new approach in SceneDelegate's scene(_:willConnectTo:options:) method. The article emphasizes understanding the change rather than just copying code, making it useful for iOS developers updating their apps for iOS 13 and later.

Accessing the Root View Controller at Launch on iOS 13 with SceneDelegate

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser