1

I am new to IOS development. I am trying to add simple TextField for entering Occupation. I would like to show the user some matching suggestions as they user type (from a set of occupations that I already have).

This is a very common usecase. Is there a idiomatic ways of doing this? In Android there is an AutoCompleteTextView in the standard view library which takes in an array of suggestions during initalization. I could not find anything similar in IOS.

Ashwin
  • 12,691
  • 31
  • 118
  • 190

1 Answers1

0

You can use some 3rd party libraries available for Auto complete text field but the best and easy approach from my perspective is to use UITextField and at bottom add UITableview. So the concept is when you type any character in textfield you need to filter some data from tableview and reload tableview

Check the below link you can get the suitable answer from here...

Getting autocomplete to work in swift

Hetali Adhia
  • 506
  • 3
  • 13