change text of button in code xcode code example Example: displaying button title swift stackoverflow println(TheButton.titleLabel!.text)