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.
Asked
Active
Viewed 2,859 times
1

Ashwin
- 12,691
- 31
- 118
- 190
1 Answers
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...

Hetali Adhia
- 506
- 3
- 13
-
Do you have any library recommendation? – Ashwin Feb 25 '22 at 07:54
-
I am not damn sure but you can try this one https://cocoapods.org/pods/CCAutocomplete – Hetali Adhia Feb 25 '22 at 09:58