After searching and editing, I can’t find a solution to fix this error. I am trying to associate location search results with a table to display the search results in a list.
I have my map with a details button associated with a UIViewController called "FirstViewController". My results table is linked to a UITableViewController called "ResultsTableViewController". My prototype cells are connected to a UITableViewCell called "ResultsTableCell", which is also where my outputs are located.
Here are two separate errors:
Illegal configuration: The output of nameLabel from ResultsTableViewController to UILabel is invalid. Outputs cannot be connected to repeat content.
Illegal configuration: PhoneLabel exiting ResultsTableViewController to UILabel is invalid. Outputs cannot be connected to repeat content.
I read other people's posts with the same problem, tried to fix them, and I still get the same error.
Here is the code to populate the cell located in my ResultsTableViewController.
let cell = tableView.dequeueReusableCellWithIdentifier("resultCell", forIndexPath: indexPath) as! ResultsTableCell // Configure the cell... let row = indexPath.row let item = mapItems[row] cell.nameLabel.text = item.name cell.phoneLabel.text = item.phoneNumber return cell }
Code in my ResultsTableCell class:
import UIKit class ResultsTableCell: UITableViewCell { @IBOutlet weak var nameLabel: UILabel! @IBOutlet weak var phoneLabel: UILabel! }
Alec source share