📜  如何在 swift 代码示例中调用应用程序委托函数

📅  最后修改于: 2022-03-11 15:01:03.658000             🧑  作者: Mango

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

// call function
appDelegate.someFunc()