I am trying to add suggestions for a UITextField. They are displayed as a UITableView under the text box, which displays several entries according to what the user enters (for example, Google Suggest).
The only method I've tried so far is to select from an internal SQLite database. This works, but it is very slow, since the database is really large (about 35,000 records). Every time something is typed, the application freezes for 4 or 5 seconds before new offers appear. Therefore, I assume that this method is not the best.
I thought about displaying everything in NSDictionary, but I'm afraid the table is too big (about 1.5 MB) and the NSDictionary constant will be very expensive in terms of memory.
What do you guys think would be better?
source
share