草庐IT

updateSearchResultsForSearchContr

全部标签

ios - updatesearchresultsforsearchcontroller 未调用

有谁知道为什么这里没有被调用?谢谢。我想我正确地设置了代表。classLocationSearchController:UIViewController,UISearchResultsUpdating,UINavigationBarDelegate,UISearchControllerDelegate{letnavigationBar=UINavigationBar(frame:CGRect(x:0,y:0,width:UIScreen.mainScreen().bounds.width,height:44))varlocationSearchController:UISearchCo

swift - 为什么不调用方法 updateSearchResultsForSearchController?

我有一个维护食谱集合的UICollectionViewController。classRecipesViewController:UICollectionViewController,UICollectionViewDelegateFlowLayout,UICollectionViewDataSource{还有另一个用于维护搜索结果的UICollectionViewController,也像这样实现UISearchResultsUpdating:classSearchResultsController:UICollectionViewController,UISearchResults