如何根据文本框输入生成自定义表格视图? [英] How to generate custom table view based on textfield input?

查看:24
本文介绍了如何根据文本框输入生成自定义表格视图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个应用程序,它有一个带有文本字段和按钮的简单根视图控制器.我想根据用户在文本字段中的输入创建自定义表格视图.

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.

想象一下:一个应用程序,它根据文本字段中的搜索输入向您显示自行车列表.假设用户在文本字段中输入:Blue Bike",下一个视图将是一个带有表视图控制器的视图,显示所有在标题中包含 Blue 或 Bike 作为单词的单元格.

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.

请指导.

推荐答案

你经历过这个吗!?UISearchDisplayController

这篇关于如何根据文本框输入生成自定义表格视图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆