0

I'm trying to implement a feature where if a user taps on a button, it brings up the textfield for the user to type something in. Once the user is done, I want to navigate the user to another screen with text that he just typed.

How do I implement bringing up the textfield for the user to type in when the button is tapped?

manohjay
  • 110
  • 1
  • 9

1 Answers1

-1

on the button action just add self.yourTextField.becomeFirstResponder ... then controller.text = yourTextField.text ...

Aragunz
  • 511
  • 5
  • 18