PLPrefTableViewController.h 884 B

1234567891011121314151617181920212223
  1. #import <UIKit/UIKit.h>
  2. typedef void(^CreateView)(UITableViewCell *, NSString *,NSString *, NSDictionary *);
  3. typedef id (^GetPreferenceBlock)(NSString *, NSString *);
  4. typedef void (^SetPreferenceBlock)(NSString *, NSString *, id);
  5. @interface PLPrefTableViewController : UITableViewController<UITextFieldDelegate>
  6. @property(nonatomic) CreateView typeButton, typeChildPane, typePickField, typeTextField, typeSlider, typeSwitch;
  7. @property(nonatomic) GetPreferenceBlock getPreference;
  8. @property(nonatomic) SetPreferenceBlock setPreference;
  9. @property(nonatomic) BOOL prefSectionsVisible, hasDetail;
  10. @property(nonatomic) NSArray<NSString*>* prefSections;
  11. @property(nonatomic) NSMutableArray<NSNumber*>* prefSectionsVisibility;
  12. @property(nonatomic) NSArray<NSArray<NSDictionary*>*>* prefContents;
  13. @property(nonatomic) BOOL prefDetailVisible;
  14. - (UIBarButtonItem *)drawHelpButton;
  15. @end