iOS Scene

Swift Xcode 11 iOS 13 Scene Delegate Life Cycle Example

When you create an iOS 13 project in Xcode 11 use single view app template, you will find Xcode 11 add a SceneDelegate.swift file automatically besides the AppDelegate.swift file. It define a SceneDelegate class in the SceneDelegate.swift file, and this class takes over some UI life cycle functions which is implemented by AppDelegate class before. …

Swift Xcode 11 iOS 13 Scene Delegate Life Cycle Example Read More »

How To Set Application Root View Controller Programmatically In Xcode 11

When using Xcode 11 to create a new iOS project, if you still create the root view controller in AppDelegate class’s – func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool function as usual, you will find there is a compile time error which said Value of type ‘AppDelegate’ has no member ‘window’. And …

How To Set Application Root View Controller Programmatically In Xcode 11 Read More »