ko1o / PYSearch

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

搜索框主动变成编辑状态 #174

Closed 1120892638 closed 5 years ago

1120892638 commented 6 years ago

从搜索结果controller中进入下一界面然后pop返回、就不显示搜索结果的页面了 直接自动变成了搜索框的编辑状态 请问可以设置吗?

ko1o commented 6 years ago

设置以下这两个属性

/**
 Whether show search result view when search bar become first responder again.

 Note: it is effective only when `searchResultShowMode` is `PYSearchResultShowModeEmbed`.
 */
@property (nonatomic, assign) BOOL showSearchResultWhenSearchBarRefocused;

/**
 Whether show keyboard when return to search result, default is YES.
 */
@property (nonatomic, assign) BOOL showKeyboardWhenReturnSearchResult;