Where does filterContentForSearchText:scope: method come from?
问题 Recently, I noticed that filterContentForSearchText:scope: appeared in multiple tutorials regarding how to implement a search bar. However, I looked up the references of both UISearchDisplayDelegate and UISearchBarDelegate . I found this filterContentForSearchText:scope: is neither a required nor an optional method. I wondered if filterContentForSearchText:scope: is just a conventional method name for filtering search results? 回答1: Yes, that is only convention for a common method called from