Protocol

UISearchDisplayDelegate

Important: UISearchDisplayDelegate is deprecated in iOS 8. (Note that UISearchDisplayController is also deprecated.) To manage the presentation of a search bar and display search results in iOS 8 and later, instead use UISearchControllerDelegate.

Overview

This protocol defines delegate methods for UISearchDisplayController objects.

Topics

Search State Change

func searchDisplayControllerWillBeginSearch(UISearchDisplayController)

Tells the delegate that the controller is about to begin searching.

Deprecated
func searchDisplayControllerDidBeginSearch(UISearchDisplayController)

Tells the delegate that the controller has started searching.

Deprecated
func searchDisplayControllerWillEndSearch(UISearchDisplayController)

Tells the delegate that the controller is about to end searching.

Deprecated
func searchDisplayControllerDidEndSearch(UISearchDisplayController)

Tells the delegate that the controller has finished searching.

Deprecated

Loading and Unloading the Table View

func searchDisplayController(UISearchDisplayController, didLoadSearchResultsTableView: UITableView)

Tells the delegate that the controller has loaded its table view.

Deprecated
func searchDisplayController(UISearchDisplayController, willUnloadSearchResultsTableView: UITableView)

Tells the delegate that the controller is about to unload its table view.

Deprecated

Showing and Hiding the Table View

func searchDisplayController(UISearchDisplayController, willShowSearchResultsTableView: UITableView)

Tells the delegate that the controller is about to display its table view.

Deprecated
func searchDisplayController(UISearchDisplayController, didShowSearchResultsTableView: UITableView)

Tells the delegate that the controller just displayed its table view.

Deprecated
func searchDisplayController(UISearchDisplayController, willHideSearchResultsTableView: UITableView)

Tells the delegate that the controller is about to hide its table view.

Deprecated
func searchDisplayController(UISearchDisplayController, didHideSearchResultsTableView: UITableView)

Tells the delegate that the controller just hid its table view.

Deprecated

Responding to Changes in Search Criteria

func searchDisplayController(UISearchDisplayController, shouldReloadTableForSearch: String?)

Asks the delegate if the table view should be reloaded for a given search string.

Deprecated
func searchDisplayController(UISearchDisplayController, shouldReloadTableForSearchScope: Int)

Asks the delegate if the table view should be reloaded for a given scope.

Deprecated

Relationships

Inherits From

See Also

Deprecated Protocols

protocol UIAccelerometerDelegate

The UIAccelerometerDelegate protocol defines a single method for receiving acceleration-related data from the system. Implementation of this method is optional, but expected.

protocol UIActionSheetDelegate

Important: UIActionSheetDelegate is deprecated in iOS 8. (Note that UIActionSheet is also deprecated.) To create and manage action sheets in iOS 8 and later, use UIAlertController.

protocol UIAlertViewDelegate

For apps that run in versions of iOS prior to iOS 8, the UIAlertViewDelegate protocol defines the methods a delegate of a UIAlertView object should implement. The delegate implements the button actions and any other custom behavior. Some of the methods defined in this protocol are optional.

protocol UIPopoverControllerDelegate

The UIPopoverControllerDelegate protocol defines the methods you can implement for the delegate of a UIPopoverController object. Popover controllers notify their delegate whenever user interactions would cause the dismissal of the popover and, in some cases, give the user a chance to prevent that dismissal.