PYSearch icon indicating copy to clipboard operation
PYSearch copied to clipboard

想请问一下如何交换搜索历史和热门搜索的位置

Open freedomAsWind opened this issue 7 years ago • 5 comments

freedomAsWind avatar Aug 31 '17 05:08 freedomAsWind

@freedomAsWind 只需要设置searchViewController. swapHotSeachWithSearchHistory = YES;即可

/**
 Whether swap the popular search and search history location, default is NO.
 
 Note: It is‘t effective when `searchHistoryStyle` is `PYSearchHistoryStyleCell`.
 */
@property (nonatomic, assign) BOOL swapHotSeachWithSearchHistory;

ko1o avatar Aug 31 '17 06:08 ko1o

perfect!

freedomAsWind avatar Aug 31 '17 08:08 freedomAsWind

swapHotSeachWithSearchHistory 没有这个属性了啊

CCBrother avatar Apr 23 '19 16:04 CCBrother

swapHotSeachWithSearchHistor设置这个属性根本不起效果

luzizheng avatar May 16 '19 06:05 luzizheng

@luzizheng Note: It is‘t effective when searchHistoryStyle is PYSearchHistoryStyleCell. 如果searchHistoryStylePYSearchHistoryStyleCell会无效。

ko1o avatar May 16 '19 07:05 ko1o