Access button text

0
Good afternoon guys ... I have the following, I need to know the title that is in a button, as if it were .text, to set use the setTitle, but and to know what the name? Thanks

    
asked by anonymous 05.10.2015 / 19:12

1 answer

1

To access the button title you must first access UILabel , because the button title is UILabel .

To access, do the following:

button.titleLabel!.text
    
05.10.2015 / 19:27