Add a search function to UIPickerView in Xcode, or

2019-09-08 02:25发布

Is it possible to add a search bar to look up values in the UIPickerView generated by a <select> menu tag?

I have a UIWebView app that has <select> menus with 100+ <option> tags and the iPhone opens a UIPickerView, but it's kind of hard to choose an option, I thought a search bar would be the easiest way!

My original question with database details: iPhone scroll-wheel picker for <select> menus



EDIT: or is it possible to make the iPhone open <select> menus in a UITableView rather than UIPickerView????

1条回答
混吃等死
2楼-- · 2019-09-08 03:02

Instead of filtering via the app, I decided to use this: http://www.lessanvaezi.com/filter-select-list-options/

This way uses a text input to filter the results using jQuery.

查看更多
登录 后发表回答