UISearchResultsUpdating //协议
searchController=[[UISearchController alloc]initWithSearchResultsController:nil];
searchController.searchResultsUpdater = self;
searchController.searchBar.showsCancelButton = NO;
searchController.dimsBackgroundDuringPresentation = YES;
searchController.hidesNavigationBarDuringPresentation = NO;
searchController.searchBar.frame = CGRectMake(0, 0, 200, 44);
self.navigationItem.titleView = searchController.searchBar;