ko1o / PYSearch

🔍 An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
MIT License
3.83k stars 752 forks source link

同一个项目中用多个 PYSearchViewController #214

Closed iDwyane closed 5 years ago

iDwyane commented 5 years ago

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

ko1o commented 5 years ago

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

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