iPhone – UisearchDisplayController – Click on the overlay, method call?

Is there a delegate method that will be called when the user clicks on the dark overlay, which will basically remove the first responder status from the UISearchDisplayController? (I can’t find one in the document.)

I want to know when the user clicks on the black overlay and hides the keyboard.

If you implement UISearchDisplayDelegate, then:

- (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *) controller

Should be called when the overlay is clicked.

I messed up with these components a few months ago, but ended up not using it because you can’t change its standard behavior.

What I found is that it is just a wrapper for UISearchBar, so you can access searchBar on SearchDisplayController like this:

[searchDisplayController.searchBar setDelegate:self ];

This method allows you to more freely access the delegate methods of the searchBar component itself. Like textDidChange, cancelButtonClicked, etc..

Is there a The delegate method, this method will be called when the user clicks on the dark overlay, which will basically remove the first responder status from the UISearchDisplayController? (I can’t find one in the documentation.)

I want to know when the user clicks on the black overlay and hides the keyboard.

If you implement UISearchDisplayDelegate, then:

- (void)searchDisplayControllerDidEndSearch:(UISearchDisplayController *)controller

should be superimposed on click Called when layer.

A few months ago I messed up with these components, but I didn’t use it in the end because you can’t change its standard behavior.

What I found is it It’s just a wrapper for UISearchBar, so you can access the searchBar on SearchDisplayController like this:

[searchDisplayController.searchBar setDelegate:self];

This way Allows you to more freely access the delegate methods of the searchBar component itself. Like textDidChange, cancelButtonClicked, etc.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1043 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.