PYSearch
An elegant search controller which replaces the UISearchController for iOS (iPhone & iPad) .
Features
- [x] Support a variety of hot search style
- [x] Support a variety of search history style
- [x] Support a variety of search results display mode
- [x] Support a variety of search view controller display mode
- [x] Support search suggestions
- [x] Support search history (record) cache
- [x] Support callback using delegate or block completion search
- [x] Support CocoaPods
- [x] Support localization
- [x] Support vertical and horizontal screen on iPhone and iPad
Requirements
- iOS 7.0 or later
- Xcode 7.0 or later
Architecture
Main
PYSearch
PYSearchConst
PYSearchViewController
PYSearchSuggestionViewController
Category
UIColor+PYSearchExtension
UIView+PYSearchExtension
NSBundle+PYSearchExtension
Hot search style
Search history style
How to use
- Use CocoaPods:
pod "PYSearch"
- Import the main file:
#import <PYSearch.h>
- Manual import:
- Drag All files in the
PYSearch
folder to project - Import the main file:
#import "PYSearch.h"
- Drag All files in the
Details (See the example program PYSearchExample for details)
Custom
- Custom search suggestions display
- Custom search result dispaly
- Set hotSearchStyle(default is PYHotSearchStyleNormalTag)
- Set searchHistoryStyle(default is PYSearchHistoryStyleCell)
- Set searchHistoriesCachePath(default is PYSEARCH_SEARCH_HISTORY_CACHE_PATH)
- Set searchHistoriesCount(default is 20)
- Set searchResultShowMode(default is PYSearchResultShowModeCustom)
- Set searchSuggestionHidden(deafult is NO)