iOS Question Using picker in iOS

Luiz Fernando Orlandini

Active Member
Licensed User
Hi All,

I have a layout with some input informations. One of them is a Picker.

Something like below...

Picker
Text
Text
Button

All the fields have 5 points between of free space.

What is the problem? Picker show all the options just after the layout is showed. This is one point. How can I not show all options until the user click in it?

The second problem. I can access the text field immediately after the picker, cause the my options block them. Is it possible the change these behaviour?

Thanks.
 

Erel

Administrator
Staff member
Licensed User
I think that you should switch to a button with ActionSheet (see DBUtils example). It will work as you want.

I didn't understand the second problem. Sorry.
 

Luiz Fernando Orlandini

Active Member
Licensed User
I think that you should switch to a button with ActionSheet (see DBUtils example). It will work as you want.

I didn't understand the second problem. Sorry.
Erel, I will se the example.

The second problem...

When i put a picker in the view all fields bellow become inaccessible, cause picker overlaps the text filed immediately below it. Is it more clear now?
 

Luiz Fernando Orlandini

Active Member
Licensed User
I think that you should switch to a button with ActionSheet (see DBUtils example). It will work as you want.

I didn't understand the second problem. Sorry.
Erel, I see DBUtils example, and is not the case to implement an Action Sheet with a button.

In Android I have implement a Combo Box, but in iOS we don't have a combo, just a picker.
 

Erel

Administrator
Staff member
Licensed User
You can use Picker. Picker is a large view so you need to make room for it. It is not possible to hide the items.
 

Erel

Administrator
Staff member
Licensed User
This is how the native Picker works. It is a wheel with values. The values always appear. Maybe you seen an app that fills the items when you click on it.
 
Top