In my TableViewController using searchBar, I use the following method:
-(void) searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText
{
...my code
}
and it works great when entering text directly into the searchBar.
Now the problem is that I want to call this method programmatically - this means that I want to fill in the search string from my code, which I know how to do (in fact, I select the recently found word in my application language dictionary) and call something like:
[SearchBar textDidChange: recentlySearchedWord]
but it just doesn't work anywhere in my code.
Please help me if you have an idea how to solve this problem.
Thank,
Tim
source
share