How do I change the name of button A when button B is pressed?
You cannot use it
for your needs. Because
- is the button you clicked on, not the one you want to change the name.
So, you need to make
your buttons look like you by creating your IBAction. Then you can call it like this:
yourButton.setTitle("Title", forState: UIControlState.Normal)
source to share