Answers for "how to call appdelegate method from viewcontroller swift 4"

1

how to call app delegate function in swift

// get a reference to the app delegate
guard let let appDelegate: AppDelegate? = UIApplication.shared.delegate as? AppDelegate else { return }

// call function
appDelegate.someFunc()
Posted by: Guest on March-18-2020

Code answers related to "how to call appdelegate method from viewcontroller swift 4"

Code answers related to "Swift"

Browse Popular Code Answers by Language