EMSearchResultController.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // EMSearchResultController.h
  3. // DXStudio
  4. //
  5. // Created by XieYajie on 22/09/2017.
  6. // Copyright © 2017 dxstudio. All rights reserved.
  7. //
  8. #import "EMRefreshViewController.h"
  9. @interface EMSearchResultController : EMRefreshViewController
  10. @property (nonatomic, strong) UISearchBar *searchBar;
  11. @property (nonatomic, strong) NSString *searchKeyword;
  12. @property (copy) void (^footerBeginRefreshCompletion)(UITableView *tableView);
  13. @property (copy) UITableViewCell * (^cellForRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
  14. @property (copy) BOOL (^canEditRowAtIndexPath)(UITableView *tableView, NSIndexPath *indexPath);
  15. @property (copy) void (^commitEditingAtIndexPath)(UITableView *tableView, UITableViewCellEditingStyle editingStyle, NSIndexPath *indexPath);
  16. //@property (copy) CGFloat (^heightForRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
  17. @property (copy) void (^didSelectRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
  18. @property (copy) void (^didDeselectRowAtIndexPathCompletion)(UITableView *tableView, NSIndexPath *indexPath);
  19. @property (copy) NSInteger (^numberOfSectionsInTableViewCompletion)(UITableView *tableView);
  20. @property (copy) NSInteger (^numberOfRowsInSectionCompletion)(UITableView *tableView, NSInteger section);
  21. @end
  22. @protocol EMSearchControllerDelegate <NSObject>
  23. @optional
  24. - (void)searchBarWillBeginEditing:(UISearchBar *)searchBar;
  25. - (void)searchBarCancelButtonAction:(UISearchBar *)searchBar;
  26. - (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar;
  27. - (void)searchTextDidChangeWithString:(NSString *)aString;
  28. @end