FLEXObjectExplorerViewController.h 1.2 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // FLEXObjectExplorerViewController.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 2014-05-03.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface FLEXObjectExplorerViewController : UITableViewController
  10. @property (nonatomic, strong) id object;
  11. // Sublasses can override the methods below to provide data in a custom section.
  12. // The subclass should provide an array of "row cookies" to allow retreival of individual row data later on.
  13. // The objects in the rowCookies array will be used to call the row title, subtitle, etc methods to consturct the rows.
  14. // The cookies approach is used here because we may filter the visible rows based on the search text entered by the user.
  15. - (NSString *)customSectionTitle;
  16. - (NSArray *)customSectionRowCookies;
  17. - (NSString *)customSectionTitleForRowCookie:(id)rowCookie;
  18. - (NSString *)customSectionSubtitleForRowCookie:(id)rowCookie;
  19. - (BOOL)customSectionCanDrillIntoRowWithCookie:(id)rowCookie;
  20. - (UIViewController *)customSectionDrillInViewControllerForRowCookie:(id)rowCookie;
  21. // If the custom section data makes the description redundant, subclasses can choose to hide it.
  22. - (BOOL)shouldShowDescription;
  23. @end