ko1o / PYSearch

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

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

Open freedomAsWind opened 7 years ago

ko1o commented 7 years ago

@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;
freedomAsWind commented 7 years ago

perfect!

CCBrother commented 5 years ago

swapHotSeachWithSearchHistory 没有这个属性了啊

luzizheng commented 5 years ago

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

ko1o commented 5 years ago

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