Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
Physical Address
304 North Cardinal St.
Dorchester Center, MA 02124
[ad_1]
I perceive it’s fairly primary, however I’m solely attempting to get a grasp on primary features.
I’ve produced some code by partially my very own information and partial bits from totally different guides.
I’m not getting any errors, however the label just isn’t displaying itself as “Textual content”. I consider it’s to do with the order/place my code is put.
Please assist clarify how I can repair this!
Please notice as nicely:
Second picture: What I get, with no errors:
Third picture: My principal storyboard file:
And now it in code:
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var myLabel: UILabel!
@IBAction func labelSet() {
myLabel.textual content = "Textual content"
}
}
[ad_2]