I need guidance because it seems like I've misunderstood some concepts.
All I'd like to achieve is to have a UIPickerView as the inputView of a UITextField. It's easily done by self.textField.inputView = self.pickerView
. The problem with this is that you still have a blinking cursor and that a device with a BT keyboard can still type text in the textfield.
So I've read about custom UIViews that can act as First Responders. I've subclassed UIView and added canBecomeFirstResponder
, canResignFirstResponder
, becomeFirstResponder
and resignFirstResponder
, all of them returning yes. Problem is, when I tap the view, nothing happens.
Defining a custom inputView
didn't help, it just acts as if nothing happened.
Any guidance is appreciated. Thanks, Z.