Change button label with typed value [duplicate]

0

I have an application that when I touch the button should open the keyboard and the value that the user type need to be inserted in the button label, I do not know how to do this, someone can help, in case it would be in swift 3

    
asked by anonymous 28.07.2017 / 20:06

1 answer

0
@IBAction func userInput(sender: UITextField) {
MeuBotao.setTitle(sender.text,for: .normal)
}
    
28.07.2017 / 20:17