ios - Changing text of UIButton programatically swift -



ios - Changing text of UIButton programatically swift -

simple question here. have uibutton, currencyselector, , want programatically alter text. here's have:

currencyselector.text = "foobar"

xcode gives me error "expected declaration". doing wrong, , how can create button's text change?

button.settitle("button title", forstate: uicontrolstate.normal)

ios xcode swift uibutton

Comments

Popular posts from this blog

javascript - I need to update the text of a paragraph by inline edit -

javascript - THREE.js reposition vertices for RingGeometry -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -