Setting the Focus to a UITextField
Code can manually change the focus of a view to bring up the keyboard for entry in a UITextField without tapping it.
To have our
UITextField, in this case named
FocusTextField, selected as soon as we open the view, we can place the following line of code in the
We can call
BecomeFirstResponder on a
UITextField at any point to switch focus - not just inside