FLEXVariableEditorViewController.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // FLEXVariableEditorViewController.h
  3. // Flipboard
  4. //
  5. // Created by Ryan Olson on 5/16/14.
  6. // Copyright (c) 2014 Flipboard. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class FLEXFieldEditorView;
  10. @class FLEXArgumentInputView;
  11. /// Provides a screen for editing or configuring one or more variables.
  12. @interface FLEXVariableEditorViewController : UIViewController
  13. + (instancetype)target:(id)target;
  14. - (id)initWithTarget:(id)target;
  15. // Convenience accessor since many subclasses only use one input view
  16. @property (nonatomic, readonly) FLEXArgumentInputView *firstInputView;
  17. // For subclass use only.
  18. @property (nonatomic, readonly) id target;
  19. @property (nonatomic, readonly) FLEXFieldEditorView *fieldEditorView;
  20. /// Subclasses can change the button title via the \c title property
  21. @property (nonatomic, readonly) UIBarButtonItem *setterButton;
  22. - (void)actionButtonPressed:(id)sender;
  23. /// Pushes an explorer view controller for the given object
  24. /// or pops the current view controller.
  25. - (void)exploreObjectOrPopViewController:(id)objectOrNil;
  26. @end