DatePickerDialog-iOS-Swift icon indicating copy to clipboard operation
DatePickerDialog-iOS-Swift copied to clipboard

Dialog not showing in iOS 13

Open sylvia971 opened this issue 4 years ago • 4 comments

The dialog is not showing when running the app in iOS 13.

sylvia971 avatar Mar 03 '20 10:03 sylvia971

seeing that here too

justdan0227 avatar Mar 05 '20 23:03 justdan0227

Crash on calling dialog picker show function.

Dubey-Shivani avatar Mar 11 '20 08:03 Dubey-Shivani

This is because in iOS 13, App Delegate does not have the variable "window".

You must create it within AppDelegate, Then, let's go to SceneDelegate, At the end of func scene (_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {

and set the "Window" variable of "AppDelegate":

let appDel = (UIApplication.shared.delegate as! AppDelegate) appDel.window = window

fjpady avatar Mar 19 '20 07:03 fjpady

I also have a problem with AppDelegate, I'm unable to skip login VC

pikeychahar avatar May 14 '21 12:05 pikeychahar