开发者

uipickerview deselect all items

开发者 https://www.devze.com 2023-02-19 23:31 出处:网络
Is it possible开发者_如何学JAVA to load an uipickerview with values but by default have no item selected?

Is it possible开发者_如何学JAVA to load an uipickerview with values but by default have no item selected?

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消