我的应用程序中有一个UITableView,并希望使用带有SearchDisplayController的SearchBar来搜索表项。我添加了一个SearchBar,将SearchBar与IBOutlet连接起来,但不知道如何让它实际做任何事情......任何人都有一个指向好教程的链接?如果您需要我的任何代码,请告诉我。
更新:我在这里找到了一个名为searchResultsDataSource的属性:http://developer.apple.com/library/ios/documentation/uikit/reference/UISearchDisplayController_Class/Reference/Reference.html#//apple_ref/occ/instp/UISearchDisplayController/searchResultsDataSource
但我该如何使用它?