I keep getting
unable to dequeue a cell with identifier TransactionCell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard
But I don't understand why. I set up an identifier in storyboard (can't upload screenshot - not enough reputation).
Here is my actual code
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = self.tableView.dequeueReusableCellWithIdentifier("TransactionCell", forIndexPath: indexPath) as TransactionCell
var transaction: Transaction
transaction = Manager.sharedManager.transactions[indexPath.row]
var dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd"
var myAmount = String(transaction.amount)
cell.amountLabel?.text = myAmount
cell.dateLabel?.text = dateFormatter.stringFromDate(transaction.date)
cell.descriptionLabel?.text = transaction.description
return cell
}