So I have a piece of code
let cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("SampleNameCell")! as UITableViewCell
// cell = UITableViewCell(style: UITableViewCellStyle.Value1, reuseIdentifier: "SampleNameCell")
The top line of code works and creates the table cell. When the cell is clicked, a view opens up that I associate with the identifier. However when I uncomment the code so that I can add a right detail label to the cell, the right detail label shows but now the view does not appear when clicked. This is the uncommented code that creates this problem
cell = UITableViewCell(style: UITableViewCellStyle.Value1, reuseIdentifier: "SampleNameCell")
Any help would be appreciated, thanks!