Thanks for posting code.
But we need to know:
what do you get as result of print (are they fired ?):
print("this is the segue destination: \(segue.destination)")
print("name being transferred is \(selectedNameInCell)")
how did you define "hs" segue, very precisely:
from where (cell ? VC itself ?)
did you do a clean build folder after removing one of the duplicates ?
Could you also add a print :
override func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? {
if let cell = tableView.cellForRow(at: indexPath) as? FavCell {
selectedNameInCell = cell.name.text
print("selectedNameInCell", selectedNameInCell)
}
return indexPath
}
Topic:
Programming Languages
SubTopic:
Swift
Tags: