2011-05-24 24 views

回答

1

我不太確定我理解你的問題。然而,在使用SearchDisplayController,當最好的方式來執行,我發現是在回答以下問題的搜索...

How to filter NSFetchedResultsController (CoreData) with UISearchDisplayController/UISearchBar

如果這是你在找不什麼,也許你可以詳細闡述你想要完成的事情。

訪問由searchDisplayController使用的tableView,試試這個:

self.searchDisplayController.searchResultsTableView 
+0

我已經使用searchdisplaycontroller其缺省顯示的tableview。我必須修改顯示的表視圖的大小。但是我找不到searchdisplaycontroller使用的tableview引用。 – Tweety 2011-05-24 12:37:28

+0

如果您嘗試訪問searchDisplayController的tableview,請使用上面列出的調用。真的,如果你像我一樣對searchDisplayController是新手,那麼真的要通過其他答案中的代碼。它非常有幫助! – jschmidt 2011-05-24 12:44:22

+0

我想修改tableview的框架。在searchdisplaycontroller中,表格只能讀取。我已經嘗試使用 - (無效)searchDisplayController:(UISearchDisplayController *)控制器didLoadSearchResultsTableView:(UITableView *)tableView;這個委託,但只有在表被加載後才被調用。在裝載之前,我必須改變表格的框架。 – Tweety 2011-05-24 13:02:53

相關問題