How to implement keywords associated function in swift?

后端 未结 2 1973
清歌不尽
清歌不尽 2021-01-29 14:44

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? Wh

相关标签:
2条回答
  • 2021-01-29 14:59

    If you're working with a table view similar to your screen shot, you can use a UISearchController. Here's a tutorial about it.

    0 讨论(0)
  • 2021-01-29 15:06

    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.

    0 讨论(0)
提交回复
热议问题