如何实现在SWIFT相关的功能关键字? [英] How to implement keywords associated function in swift?

查看:151
本文介绍了如何实现在SWIFT相关的功能关键字?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里输入的形象描述

例如,当我输入几个字母,对应的话就会自动显示出来,然后我可以选择它们。但如何实现这种功能?我应该使用哪种UI元素?我应该也输入脐带血数据世界上所有国家,这样我可以得到相应的效果?

For example, when I input several letters, the corresponding words will show up automatically and then I can select them. But how to implement this kind of function? Which kind of UI element should I use ? Should I also input all countries in the world in cord data so that I can get the corresponding results ?

推荐答案

您已经显示的图像似乎只是出现在响应中填充的UITableView什么类型的用户中的UITextField。

The image you've shown appears to be simply a UITableView that appears and is populated in response to what the user types in a UITextField.

这篇关于如何实现在SWIFT相关的功能关键字?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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