I have created two different classes of UITableViewButtons to use within the same UITableView/UITableViewController. Both classes have corresponding XIB/NIB Files and subclass UITableViewCell. However on the dequeueReusableCellWithIdentifier (either pointsCell or cell, same error) the app attempts to show and UITableView, leaving it black and crashing on the dequeueReusableCellWithIdentifier line with EXC_BREAKPOINT (code=1, subcode=0x1006fe528)...
This is the first time that I have attempted to add a custom cell to a uitableview, so not sure exactly what I'm doing, however I did follow a tutorial so have a general idea of the concept. New->add file->new swift file->subclassed uuitableviewcell, included XIB->then added the outlets as necessary. Also here is my exact code that causes the issue:
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
// Configure the cell...
if indexPath.row == 0 {
//customize first one with custom data
let pointsCell:PointsTableViewCell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as PointsTableViewCell
let points = NSUserDefaults.standardUserDefaults().objectForKey("points") as Int
pointsCell.pointsLabel.text = "Points: \(points)"
return pointsCell
}
//otherwise customize the rest normal
let cell:StoreTableViewCell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as StoreTableViewCell
return cell
}