iphone - AutoCompletion on UISearchBar -
I am developing applcation with UISearchBar & amp; Tableview Enter event on UISearchBar text I am reading four. & Amp; For the recorded text I am getting results from the database but the problem is that it is a blocked call. So I waited until the result is returned, but then I press the next four presses. I have to ask the database to enter for each character, I have query to enter the whole text from the database. I want to implement auto-compositing like Google search bar in the Google search bar, the user has to wait to get the list of voiced characters Iwant that I am using iPhoneSDK 3.0 to be implemented in my applcation The same thing is going on when I'm pressing backspace. But the problem is that this application crashes on iPhone Simulatior if I constantly press backspace.
Can someone signal me ???
You can always apply your text lookup to a different thread - this is likely to present suggestions often. Can not do it, but it does not have at least blocks
If you do this, make sure to "remember" the text, which is based on lookup - then, if the text in the UISearchBar does not match now, then remove the result - it will no longer apply .
Example:
The user has typed "bri" Tour Lookup determines that potential suggestions are "bridal", "bridge", "bride" and "brigade" In the time of your lookup, the user has added 'D', then you do not want to make any other suggestion of "Brigand". You do not necessarily have to throw out the entire list, but at least you want to delete the items that are now working Do not do it.
Comments
Post a Comment