I have a UIScrollView
with 2 view
s, side by side, each of which covers the entire screen.
They are moved to visible bounds on user's action, only one covering the screen at a time. Both of these views have multiple UITextFields
. Working with the simulator, I fill in a textField
in the first view and when I press the Tab key, the firstResponder
is assigned to a textField
in the other view. I understand that on using the device, the user will not be able to do that. But what if the user uses a bluetooth keyboard, or similar accessory? I do not want a textField, that is currently not visible to become firstResponder
. Can this be done?
EDIT: I just remembered the canBecomeFirstResponder
method. But how do I determine which textField
is about to becomeFirstResponder
?