So I'm using the master-view template. And there is something I do not get. In the detail part apple goes:
Why? Apple puts the label on the screen and even unpacks the label. So you're sure the label is present. Why does apple need the if let construction?
Code:
@IBOutlet weak var detailDescriptionLabel: UILabel!
if let label = self.detailDescriptionLabel {
label.text = ...
}
Why? Apple puts the label on the screen and even unpacks the label. So you're sure the label is present. Why does apple need the if let construction?