I have an alert action with calling handler:
alert.addAction(UIAlertAction(title: "Call", style: UIAlertActionStyle.Default, handler: {(action: UIAlertAction!) in UIApplication.sharedApplication().openURL(NSURL(string: "tel://number")!)}))
Now I want one more action that will call my function, something like this:
alert.addAction(UIAlertAction(title: "Call", style: UIAlertActionStyle.Default, handler: {(action: UIAlertAction!) in myFunc() )}))
But it shows an error and I don't know how to solve this problem.
Help! Thanks!