AAPLCatalogTableTableViewController.m 784 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // AAPLCatalogTableTableViewController.m
  3. // UICatalog
  4. //
  5. // Created by Ryan Olson on 7/17/14.
  6. #import "AAPLCatalogTableTableViewController.h"
  7. #if DEBUG
  8. // FLEX should only be compiled and used in debug builds.
  9. #import "FLEXManager.h"
  10. #endif
  11. @interface AAPLCatalogTableTableViewController ()
  12. @end
  13. @implementation AAPLCatalogTableTableViewController
  14. - (void)viewDidLoad
  15. {
  16. [super viewDidLoad];
  17. #if DEBUG
  18. self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"FLEX" style:UIBarButtonItemStylePlain target:self action:@selector(flexButtonTapped:)];
  19. #endif
  20. }
  21. - (void)flexButtonTapped:(id)sender
  22. {
  23. #if DEBUG
  24. // This call shows the FLEX toolbar if it's not already shown.
  25. [[FLEXManager sharedManager] showExplorer];
  26. #endif
  27. }
  28. @end