change UIButton text with another UIButton text (swift)

Viewed 1416

My question is how to change UIButton's title with another UIButton's title. I have three buttons and I want to exchange title for button 1 and 3 with each other when I click on button 2.

Look at this image and you will understand.

how can I do that?

Image

3 Answers
Related