How to pass in parameters into @objc function
问题 I have a cell in a tableView, with a button I want to add an action to. The button will be an email address. When the button is pressed, I want to trigger a delegate that will have another ViewController open up an email. However, I need to be able to pass in the email as a parameter and Swift doesn't seem to let me do that. Relevant code is below: func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let row = self.sections[indexPath.section].rows