Created
May 6, 2020 10:46
-
-
Save stevencurtis/1a0a77acf009f8051702cf0d99261fe3 to your computer and use it in GitHub Desktop.
tableViewdelegate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { | |
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! CustomTableViewCell | |
cell.nameLabel.text = data[indexPath.row] | |
cell.cellIndex = indexPath | |
cell.delegate = self | |
return cell | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment