Hey there,
I want to create a TableView displaying datas the user created in the View before.
Just for testing I tried to set Strings manually so that I know the TableView is working correctly.
In storyboard I created a TableViewController with a TableView and a Cell. The Cell has the style "Subtitle" and the Indentifer "Cell".
The code in the matching class file is the following:
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath)
// Configure the cell...
cell.textLabel?.text = "Test"
cell.detailTextLabel?.text = "Test2"
return cell
}
Anyone knows what I did wrong?
Best regards