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
If you're working with a table view similar to your screen shot, you can use a UISearchController. Here's a tutorial about it.
UISearchController
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.