12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // EMSearchResultController.h
- // DXStudio
- //
- // Created by XieYajie on 22/09/2017.
- // Copyright © 2017 dxstudio. All rights reserved.
- //
- #import "EMRefreshViewController.h"
- @interface EMSearchResultController : EMRefreshViewController
- @property (nonatomic, strong) UISearchBar *searchBar;
- @property (nonatomic, strong) NSString *searchKeyword;
- @property (copy) void (^footerBeginRefreshCompletion)(UITableView *tableView);
- @property (copy) UITableViewCell * (^cellForRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
- @property (copy) BOOL (^canEditRowAtIndexPath)(UITableView *tableView, NSIndexPath *indexPath);
- @property (copy) void (^commitEditingAtIndexPath)(UITableView *tableView, UITableViewCellEditingStyle editingStyle, NSIndexPath *indexPath);
- //@property (copy) CGFloat (^heightForRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
- @property (copy) void (^didSelectRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
- @property (copy) void (^didDeselectRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
- @property (copy) NSInteger (^numberOfSectionsInTableViewCompletion)(UITableView *tableView);
- @property (copy) NSInteger (^numberOfRowsInSectionCompletion)(UITableView *tableView, NSInteger section);
- @end
- @protocol EMSearchControllerDelegate <NSObject>
- @optional
- - (void)searchBarWillBeginEditing:(UISearchBar *)searchBar;
- - (void)searchBarCancelButtonAction:(UISearchBar *)searchBar;
- - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar;
- - (void)searchTextDidChangeWithString:(NSString *)aString;
- @end
|