uilabel - how do I change text in a label with swift? -



uilabel - how do I change text in a label with swift? -

i'm trying alter text on label in simple ios app.

the thought write message in textfield , have alter label 1 time press button.

the objective-c code states following:

[self.simplelabel settext:message]

simplelabel: associated uilabel settext: method message: variable set in previous line

how write in swift?

i tried combing through apple documentation came nothing.

thanks!

swift uses same cocoa-touch api. can phone call same methods, utilize swift's syntax. in illustration can this:

self.simplelabel.text = "message"

note settext method isn't available. setting label's text = automatically phone call setter in swift.

uilabel swift

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -