Basically what I want to do in my app is have a UISearchBar
which, when I write in, will feedback location results and populate that into a UITableView that appears. I see one more question on this site:
Display Locations on UITableview
But that really didn't help me, no answer helped me at all, and they were quite vague.
So, my question is. You know how some apps maybe you have to type in a city or country, but the user might not be able to fully spell it, so based on your UISearchBar
results, it presents a TableView with the suggested cities. So say I am about to write Singapore, I don't know how it is spelled. So I write:
'Sing'
And BAM, a UITableView below pops up with different options/cell titles, including a cell that suggests 'Singapore'. Then I click on that cell and then my search bar is autofilled with 'Singapore'. Here is a screenshot example of what I want to do with a current app called 'iChangi' on the Singapore app store:
So I understand I should implement the UISearchBar
delegate where the text changed, but what I want to know is there an API or database I can query to feedback the suggested cities? And how would I go around doing this, can you provide me with a tutorial on it or simply state a few steps.