I literally could not find a single tutorial that would show me how to create an application that uses static cells; with interactive cells. Based on the few published and object answers, I put something together. My problem is that when I click on a cell, I get staticDemoTableCellno member present.
I have embedded the table controller in my UIViewController. For this cell (only so far) I created a class:
class staticDemoTableCell: UITableViewCell, UITableViewDelegate {
@IBOutlet weak var tableView: UITableView!
override func awakeFromNib() {
[...]
tableView.delegate = self
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print("clicked")
}
}
Something does not fit, for each cell - a class?
, . , , . , : : , : .. , iOS. .