Delegates in swift?

Here’s a little help on delegates between two view controllers: Step 1: Make a protocol in the UIViewController that you will be removing/will be sending the data. protocol FooTwoViewControllerDelegate:class { func myVCDidFinish(_ controller: FooTwoViewController, text: String) } Step2: Declare the delegate in the sending class (i.e. UIViewcontroller) class FooTwoViewController: UIViewController { weak var delegate: FooTwoViewControllerDelegate? … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)