iPhone SDK: UISearchBar: searchBarTextDidEndEditing not firing -


I am implementing a search bar on my table, which should be quite straight forward. I have found this:

  - (zero) searchBarTextDidBeginEditing: (UISearchBar *) Searchbar {NSLog (@ "searchBarTextDidBeginEditing"); } - (zero) search bar: (UISearchBar *) Searchbar textde change: (NSString *) search text {nslog (@ "search text:% @", search text); } - (Zero) SearchbarIDIDIDING: (UISearchBar *) Searchbar {NSLOG (@ "SearchbarItadTeading"); [The resignation of the first responder]; }  

and searchBarTextDidBegin fire edit, and I get the message in my logs, but when I tap outside the search bar, I do not find the search BartextDidEndEditing Event I'm missing the keyboard - The message does not even appear in the log

The textDidChange is working, so it is not just Search BarTextDidBeginEditing.

Any thoughts? Thanks!

Even I had to face the same problem.

Please use the following methods

Apply methods below

1.searchBarTextDidEndEditing # 2.searchBarSearchButtonClicked

< P> And make sure that you [UISearchchbar resignfirstresponder] in the second method mentioned above


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -