I have a simple view with 4 textfields tf1 - tf4.
I want to set the initial focus on tf2, that works fine.
Then I want, that tf1 gets focus, then tf2 again - that does not work, the focus cycles through all 4 textfields.
I tried like this:
override func viewWillAppear()
{ super.viewWillAppear()
tf2.becomeFirstResponder()
tf2.nextKeyView = tf1
tf1.nextKeyView = tf2
}
Where is my mistake?
With: self.view.window!.initialFirstResponder = tf2 it works fine – mica Mar 24 '17 at 16:26