iOS autocomplete feature

后端 未结 2 1364
终归单人心
终归单人心 2021-02-06 09:03

What most people mean by autocomplete is that the app has a textview/searchbar/whatever which accepts user input. Attached to this component is a tableview which keeps updating

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-06 09:28

    Alternatively, you can use this UITextField subclass (inspired by DOAutocompleteTextField):

    https://github.com/hoteltonight/HTAutocompleteTextField

    It's got a few more features and is actively developed. The example shows you how to use an array as the data source for the autosuggest text.

提交回复
热议问题