How to generate custom table view based on textfield input?

喜夏-厌秋 提交于 2019-12-12 03:16:39

问题


I am trying to create an app which has a simple root view controller with a textfield and a button. I want to create a custom table view based on the input of the user in the text field.

Imagine this : An App that shows you a list of bikes based on the search input in the text field. Say the user inputs : "Blue Bike" in the text field, the next view will be the one with a table view controller showing all the cells that have Blue or Bike as words in the title.

Please guide.


回答1:


Have you gone through this !? UISearchDisplayController



来源:https://stackoverflow.com/questions/18074366/how-to-generate-custom-table-view-based-on-textfield-input

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