FLEXExplorerSection.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // FLEXExplorerSection.m
  3. // FLEX
  4. //
  5. // Created by Tanner Bennett on 8/28/19.
  6. // Copyright © 2019 Flipboard. All rights reserved.
  7. //
  8. #import "FLEXExplorerSection.h"
  9. #import "FLEXTableView.h"
  10. #pragma clang diagnostic push
  11. #pragma clang diagnostic ignored "-Wincomplete-implementation"
  12. @implementation FLEXExplorerSection
  13. - (void)reloadData { }
  14. - (NSDictionary<NSString *,Class> *)cellRegistrationMapping {
  15. return nil;
  16. }
  17. - (BOOL)canSelectRow:(NSInteger)row { return NO; }
  18. - (void (^)(UIViewController *))didSelectRowAction:(NSInteger)row {
  19. UIViewController *toPush = [self viewControllerToPushForRow:row];
  20. if (toPush) {
  21. return ^(UIViewController *host) {
  22. [host.navigationController pushViewController:toPush animated:YES];
  23. };
  24. }
  25. return nil;
  26. }
  27. - (UIViewController *)viewControllerToPushForRow:(NSInteger)row {
  28. return nil;
  29. }
  30. - (void (^)(UIViewController *))didPressInfoButtonAction:(NSInteger)row {
  31. return nil;
  32. }
  33. - (NSString *)reuseIdentifierForRow:(NSInteger)row {
  34. return kFLEXDefaultCell;
  35. }
  36. - (NSString *)titleForRow:(NSInteger)row { return nil; }
  37. - (NSString *)subtitleForRow:(NSInteger)row { return nil; }
  38. @end
  39. #pragma clang diagnostic pop