ko1o / PYSearch

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

搜索历史的某个小问题 #144

Open shuiliang opened 6 years ago

shuiliang commented 6 years ago

VC1 和 VC2 都用到 PYSearch, 能不能把 各自的搜索历史 区别开来,当前 VC 搜索的不会在另外的 VC 里面显示?

ko1o commented 6 years ago

可以的,你只要通过searchHistoriesCachePath属性,手动设置两个搜索控制器的搜索历史缓存路径即可!

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

哈哈 弄好了,谢谢你~