mamba
mamba
@al1020119 这样的,block没有提供索引的。你可以通过代理方法分别获取热门搜索/搜索历史/搜索建议的索引。如下 ```OBJC /** 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...
@ETHANAIR 我这边最新版没问题。 加我QQ:499491531 备注:#122
 有可能是因为这句代码!
@lijun783097 push 请自己实现取消点击的代理方法,然后执行 pop ```objc /** Called when cancel item did press, default execute `[self dismissViewControllerAnimated:YES completion:nil]`. @param searchViewController search view controller */ - (void)didClickCancel:(PYSearchViewController *)searchViewController; ```
@iOSwxh 那是因为搜索建议的tableView的delegate是`PYSearchSuggestionViewController` 而不是`PYSearchViewController`.
@jniosdeveloper 如果是自定义数据,手动实现数据源方法,然后searchViewController的`searchSuggestionView`,执行`reloadData`方法即可!
@jniosdeveloper `searchSuggestionView`该属性已经开放,只需要`searchViewController.searchSuggestionView`即可获取!
@jniosdeveloper 是的,欢迎更新!
@freedomAsWind 只需要设置searchViewController. swapHotSeachWithSearchHistory = YES;即可 ```OBJC /** Whether swap the popular search and search history location, default is NO. Note: It is‘t effective when `searchHistoryStyle` is `PYSearchHistoryStyleCell`. */ @property (nonatomic,...
@luzizheng Note: It is‘t effective when `searchHistoryStyle` is `PYSearchHistoryStyleCell`. 如果`searchHistoryStyle`为`PYSearchHistoryStyleCell`会无效。