问题
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:
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.
来源:https://stackoverflow.com/questions/12061079/add-a-search-function-to-uipickerview-in-xcode-or-open-select-menu-in-uitable