I am defining this in a UIViewController and trying to access myIndex in a different view controller. How can I do this?
I would like to do this programmatically without storyboards. Any help is much appreciated!
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
//NSLog("You selected cell number: \(indexPath.row)!")
let myIndex = indexPath.row
}