When the value is passed for UILabel the error appears :
Can't unwrap Optional.None
source code:
@IBOutlet var rowLabel : UILabel
var row: String? {
didSet {
// Update the view.
println(row)
rowLabel.text = row
}
}
Also error appears in label in the template for UITable when I appropriate new meaning:
let myCell : Cell = Cell(style: UITableViewCellStyle.Subtitle, reuseIdentifier: "cell") myCell.myLabel.text = "(indexPath.row)"