To access the button title you must first access UILabel , because the button title is UILabel .
UILabel
To access, do the following:
button.titleLabel!.text