You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Called when popular search is selected. @param searchViewController search view controller @param index index of tag @param searchText text for search Note: `searchViewController:didSearchWithSearchBar:searchText:` will not be called when this method is implemented.*/
- (void)searchViewController:(PYSearchViewController *)searchViewController
didSelectHotSearchAtIndex:(NSInteger)index
searchText:(NSString *)searchText;
/** Called when search history is selected. @param searchViewController search view controller @param index index of tag or row @param searchText text for search Note: `searchViewController:didSearchWithSearchBar:searchText:` will not be called when this method is implemented.*/
- (void)searchViewController:(PYSearchViewController *)searchViewController
didSelectSearchHistoryAtIndex:(NSInteger)index
searchText:(NSString *)searchText;
/** Called when search suggestion is selected. @param searchViewController search view controller @param index index of row @param searchText text for search Note: `searchViewController:didSearchWithSearchBar:searchText:` will not be called when this method is implemented.*/
- (void)searchViewController:(PYSearchViewController *)searchViewController
didSelectSearchSuggestionAtIndex:(NSInteger)index
searchText:(NSString *)searchText PYSEARCH_DEPRECATED("Use searchViewController:didSelectSearchSuggestionAtIndexPath:searchText:");
之前是这个方法,点子点击的话怎么拿到索引呢?
PYSearchViewController *searchViewController = [PYSearchViewController searchViewControllerWithHotSearches:[hotSeaches copy] searchBarPlaceholder:@"输入感兴趣的内容" didSearchBlock:^(PYSearchViewController *searchViewController, UISearchBar *searchBar, NSString *searchText, NSInteger section, NSInteger rows) {
The text was updated successfully, but these errors were encountered: