Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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()
 
PREVIOUS NEXT
Tagged: #call #app #delegate #function #swift
ADD COMMENT
Topic
Name
3+4 =