Inherits UIViewController, and <EMSearchQueryControllerDelegate>.
Inherited by EMDefaultSearchController, and EMToggleSearchController.
Public Member Functions | |
| (id) | - initWithSearchQueryDataSource: |
| (void) | - adjustNavigationItem |
| (void) | - adjustSortBar |
| (void) | - positionSortBar |
Protected Attributes | |
| EMSearchBar * | _searchBar |
| TTView * | _sortBar |
| UISegmentedControl * | _sortControl |
| UIBarButtonItem * | _fButton |
| UIView * | _noResultsView |
| UIView * | _errorView |
| UIView * | _loadingView |
| UILabel * | _errorLabel |
| BOOL | _showFacetsForEmptyQuery |
| BOOL | _showResultsForEmptyQuery |
| BOOL | _searchBarVisible |
| NSString * | _searchKey |
| BOOL | _searchBarCancelButtonVisible |
| BOOL | _searchBarFirstResponderEnabled |
| BOOL | _sortBarVisible |
| NSArray * | _sortOptions |
| BOOL | _sortBarScrollable |
| BOOL | _sortBarStartsAboveFold |
| BOOL | _pushDetailControllerForSingleResult |
| NSError * | _error |
| NSString * | _previousSearchBarText |
| BOOL | _cancellingKeyboard |
| BOOL | _reload |
| BOOL | _showingFilterView |
| BOOL | _showingKeyboard |
| BOOL | _viewDidAppear |
| BOOL | _viewDidLoad |
| UIView * | _currentView |
| EMTypeaheadDataSource * | _keywordsSource |
| EMSearchQueryDataSource * | _dataSource |
|
id < EMSearchQueryControllerDelegate > | _delegate |
Properties | |
| EMSearchQuery * | query |
| EMSearchQueryDataSource * | dataSource |
| id < EMSearchQueryControllerDelegate > | delegate |
| EMSearchBar * | searchBar |
| NSString * | searchKey |
| BOOL | searchBarCancelButtonVisible |
| BOOL | searchBarVisible |
| NSArray * | sortOptions |
| - (void) adjustNavigationItem |
To be overridden by subclasses for custom behavior
| - (void) adjustSortBar |
To be overridden by subclasses for custom behavior
- (NSError*) _error [protected] |
Internal variables
- (EMTypeaheadDataSource*) _keywordsSource [protected] |
Data sources / Delegates
- (EMSearchBar*) _searchBar [protected] |
User Interface Elements
- (BOOL) _showFacetsForEmptyQuery [protected] |
Configuration Options
- (EMSearchQueryDataSource*) dataSource [read, write, retain] |
Convenience method for casting the objectSource to a EMSearchQueryDataSource
- (id<EMSearchQueryControllerDelegate>) delegate [read, write, assign] |
This delegate returns the views that are presented by this controller Default = self.
- (EMSearchQuery *) query [read, write, retain] |
Convenience method for accessing the dataSource's query
- (BOOL) searchBarCancelButtonVisible [read, write, assign] |
Default = YES.
- (BOOL) searchBarVisible [read, write, assign] |
Default = YES.
- (NSString*) searchKey [read, write, retain] |
The search key to use when creating EMSearch objects to add the the EMSearchQuery.
Default = nil.
- (NSArray*) sortOptions [read, write, retain] |
An array of EMSort objects. Setting this will cause the sort bar to appear. Re-setting this will re-create the sort bar with the new options
The sort bar will not be displayed if there are zero products displayed
Default = nil;
1.8.0