开发者

There is any way to do multi selection in pickerview?

开发者 https://www.devze.com 2023-01-14 16:25 出处:网络
I am trying to set multiple selection for my p开发者_JAVA百科ickerview does it possible?No, you can\'t do that with UIPickerView (anyway - selected item is always positioned on central row - it has to

I am trying to set multiple selection for my p开发者_JAVA百科ickerview does it possible?


No, you can't do that with UIPickerView (anyway - selected item is always positioned on central row - it has to be the only one at least for that reason). You can make UIPickerView with multiple sections(columns) though and each section will have 1 selected item if that suit you.

The best option for multiple selection (imo) is UITableView with UITableViewCellAccessoryCheckmark accessory view

0

精彩评论

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

关注公众号