Domanda

Using inappsettingskit, I'm searching for a way to display an uipickerview (with custom values) when clicking on a textfield cell (instead of a keyboard).

Is there any way to do so ?

Thanks for your help :)

È stato utile?

Soluzione

Read the setting in you application and for showing picker view instead of standard keyboard use UITextField inputView property.

myTextField.inputView = myPickerView;

From Apple Documentation for inputView .

If the value in this property is nil, the text field displays the standard system keyboard when it becomes first responder. Assigning a custom view to this property causes that view to be presented instead.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top