ko1o / PYSearch

🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

同一个项目中用多个 PYSearchViewController

iDwyane opened this issue · comments

同一个项目中用多个 PYSearchViewController ,就会记住同样的搜索历史记录,但是是不同的搜索界面

commented

@iDwyane 只需要设置下面的属性,自定义搜索记录缓存路径就可以区分开了。

/**
 The path of cache search record, default is `PYSEARCH_SEARCH_HISTORY_CACHE_PATH`.
 */
@property (nonatomic, copy) NSString *searchHistoriesCachePath;