uisearchbardelegate

Search bar delegate - difference between searchBarShouldBeginEditing / searchBarTextDidBeginEditing?

What's the difference between them? In my experimentation, they seem to get called during the same action - once the user taps the search bar to bring up the keyboard. This is despite the user not having editing the actual text yet. Which seems to call searchBar:textDidChange. But that gets called for each change, not just once at the be...

How can I hide the UITableView that UISearchBar created?

In my iPhone application I am writing I have a search bar and search display controller. When the user types something in the search box, the table view loads and is now visible. When a user clicks on a row, I would like to get rid of the tableView and go back to the view where the user originally clicked the search bar. I have searched ...

Customized UISearchBar

I've got an app with the following class: @interface SearchViewController : UIViewController <UITableViewDataSource, UITableViewDelegate, UISearchBarDelegate> @property (nonatomic, retain) IBOutlet UISearchBar *search; How can I customize UISearchBar? I'd like to add a segmented button to allow for search options (and/or/phrase). ...

Search Display to not show results until search bar is tapped

I think I may be missing something obvious: Is there a simple way to modify the UISearchBar or UISearchDisplayController so that it doesn't reload the view after each letter typed but only after the Search button is hit? ...

How do you hide/show UISearchBar's scope bar with animation?

I want to show no scope bar when the table is empty (before the search bar edits for the first time), no scope bar when it's editing, and finally show it when editing done. I know about the UISearchBarDelegate protocol, but I don't know how to show/hide the scope bar with animation. I know UISearchBar has setShowsScopeBar:, but no setSho...

Can't make table view inactive when search bar is in use. iPhone.

I have a table view with a search bar above it, and when the search bar is pressed I want the table view to become inactive. So I have this method: - (void)searchBarTextDidBeginEditing:(UISearchBar *)searchBar { self.tableView.userInteractionEnabled = NO; } with the same class being the UISearchBarDelegate. For some reason thoug...