Search code examples
iphonesdkuipickerviewuipicker

uipickerview deselect all items


Is it possible to load an uipickerview with values but by default have no item selected?

I tried setting selected item to -1 with no success.


Solution

  • I'm pretty sure you always have to have at least one item selected with a UIPicker... What would it display? Maybe you could create an item titled, "Please select" or something?

    I think that you should always have at least some default that's already selected.