how do I change text in a label with swift?

Swift uses the same cocoa-touch API. You can call all the same methods, but they will use Swift’s syntax. In this example you can do something like this:

self.simpleLabel.text = "message"

Note the setText method isn’t available. Setting the label’s text with = will automatically call the setter in swift.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)