vendredi 2 janvier 2015

display hello in uitableview cell in swift


func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
{
var cell = tableView.dequeueReusableCellWithIdentifier("Cell") as UITableViewCell!
cell.textLabel?.text = "hello"
return cell
}


I get fatal error



fatal error: unexpectedly found nil while unwrapping an Optional value



Aucun commentaire:

Enregistrer un commentaire