IOS UISearchDisplayDelegate, iosdelegate

Source: Internet
Author: User

IOS UISearchDisplayDelegate, iosdelegate

Search status change


  • -SearchDisplayControllerWillBeginSearch: // you are about to start searching.
  • -SearchDisplayControllerDidBeginSearch: // search started
  • -SearchDisplayControllerWillEndSearch: // The search is about to end.
  • -SearchDisplayControllerDidEndSearch: // the search has been completed.



Mount and uninstall tableview


  • -SearchDisplayController: didLoadSearchResultsTableView: // The controller is loaded into tableview.
  • -SearchDisplayController: willUnloadSearchResultsTableView: // the Controller will uninstall tableview.


Show and hide tableview


  • -SearchDisplayController: willShowSearchResultsTableView: // table to be displayed
  • -SearchDisplayController: didShowSearchResultsTableView: // table already displayed
  • -SearchDisplayController: willHideSearchResultsTableView: // table to be hidden
  • -SearchDisplayController: didHideSearchResultsTableView: // table already displayed



Response to changing search criteria


  • -SearchDisplayController: shouldReloadTableForSearchString: // called when the query string is changed
  • -SearchDisplayController: shouldReloadTableForSearchScope: // call when the search range is changed (used when the show scope attribute is applied to the SearchBar)


When the iOS developer UISearchDisplayController finds 3 or 5 items, the scrolling tableview is incorrect.

I don't quite understand what you mean. Do you want to scroll? Or is the data incorrect during scrolling?
 
Ios delegate attributes

Assign for non-ARC, weak for arc. The pointer will not be released at the moment.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.