Reputation: 5510
I am wondering if there is a way to use a UITextField
programatically (i.e. use buttons as inputs) so that you can select a UITextField
but not show the UIKeyboard
, then when you select a UIButton
it would assign a string value to the currently selected UITextField
.
I don't really know where to start.
Upvotes: 0
Views: 135
Reputation: 16256
It seems that you don't really need a text field (e.g., edit/select text, etc.), but a "button that stays highlighted" instead. Then, you can programmatically change the button's title label to the specified string when the user taps the 'proper' buttons.
Upvotes: 1
Reputation: 1618
I think you can visually change the appearance of the text field (for example add a blue border), let the user feel it’s “selected”. Then you just modify textfield.text when user presses button.
Or alternately, you can create a customized keyboard. There are many similar questions.
Upvotes: 3