Add a search function to UIPickerView in Xcode, or open <select> menu in UITableView

北慕城南 提交于 2019-12-25 08:58:20

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!