displaying button title swift stackoverflow

Swift
println(TheButton.titleLabel!.text)
Source

Also in Swift: