Answers for "swift access appdelegate"

1

swift access appdelegate from viewcontroller

let appDelegate = UIApplication.shared.delegate as! AppDelegate
let aVariable = appDelegate.someVariable
Posted by: Guest on September-29-2020
1

how to get appdelegate object in swift

let appDelegate = UIApplication.shared.delegate as! AppDelegate
let aVariable = appDelegate.someVariable
Posted by: Guest on March-04-2020

Code answers related to "swift access appdelegate"

Code answers related to "Swift"

Browse Popular Code Answers by Language