Swift: erro de superclasse da exibição de tabela
Criei um menu deslizante usando o Swift. Eu já fiz isso várias vezes antes, mas quando o criei hoje, recebo esse erro (veja a captura de tela). Poderia ser apenas um simples erro que cometi.
Aqui está o código, que acho que está causando o problema:
override func tableView(tableView: UITableView!, cellForRowAtIndexPath indexPath: NSIndexPath!) -> UITableViewCell! {
var cell:UITableViewCell? = tableView.dequeueReusableCellWithIdentifier("Cell")! as UITableViewCell
if cell == nil{
cell = UITableViewCell(style: UITableViewCellStyle.Default, reuseIdentifier: "Cell")
cell!.backgroundColor = UIColor.clearColor()
cell!.textLabel!.textColor = UIColor.darkTextColor()
let selectedView:UIView = UIView(frame: CGRect(x: 0, y: 0, width: cell!.frame.size.width, height: cell!.frame.size.height))
selectedView.backgroundColor = UIColor.blackColor().colorWithAlphaComponent(0.3)
cell!.selectedBackgroundView = selectedView
}
cell!.textLabel!.text = tableData[indexPath.row]
return cell
}
Captura de tela:
ATUALIZAÇÃO: tentei removeroverride
Espero que alguém possa ajudar!