0

i'm making an app that needs to transfer data using segues and cells. I have two nearly identical View Controllers but one of them is getting the following error on line 3 whenever I launch it:

Bad Instruction Error

I know that Bad Instruction errors mean that it is finding nil, but I don't know how to fix it. This is the code that isn't working:

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
        let cell: InstrumentTableCell! = tableView.dequeueReusableCellWithIdentifier(identifier) as? InstrumentTableCell
        cell.configurateTheCell(recipies[indexPath.row])

        return cell!
    }

How do I fix this?

Wyetro
  • 8,439
  • 9
  • 46
  • 64
zach2161
  • 113
  • 11

0 Answers0