I have a storyboard that includes navigation between views. Back and forth, and there is also the opportunity to completely go to the main screen.
Basically, it works as follows:
- View 1 shows a simple menu.
- View 2 shows the input fields and automatically shows the keyboard.
- Presentation 3 shows a table of results. In this view, you can take one step back (to view 2) or return to the main screen (view 1).
The keyboard and everything works fine the first time the user switches from view 1 to view mode 2. However, when you move backward from view 3 to view mode 2, or from window 3, the keyboard does not show again.
In code, I became FirstResponder in the viewDidAppear method. In addition, it will resignFirstResponder when loading view 3. Another interesting fact is that when you call startFirstResponder a second time, it returns NO (as long as it returns YES for the first time). In addition, when returning to this view, text fields cannot be selected, even if they are userInteractionEnabled.
I am really stuck here, so any help is much appreciated. I saw several similar questions to this, but could not find a solution:
source share