Check out example codes for "displaying button title swift stackoverflow". It will help you in understanding the concepts better.

Code Example 1

println(TheButton.titleLabel!.text)

Learn ReactJs, React Native from akashmittal.com