RASettingBaseModel.h 702 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // RASettingBaseModel.h
  3. // Apex And Drivers
  4. //
  5. // Created by Jack on 2018/9/12.
  6. // Copyright © 2018年 USAI. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef enum {
  10. RASettingTypeOption = 0,
  11. RASettingTypeSwitch = 1,
  12. RASettingTypeAction = 2,
  13. RASettingTypeAbout = 3,
  14. RASettingTypeLink = 4
  15. } RASettingType;
  16. @protocol RASettingModelDelegate <NSObject>
  17. @optional
  18. - (void)refreshUI;
  19. @end
  20. @interface RASettingBaseModel : NSObject
  21. @property (nonatomic,assign) RASettingType type;
  22. @property (nonatomic,copy) NSString *title;
  23. @property (nonatomic,weak) id<RASettingModelDelegate> delegate;
  24. @property (nonatomic,assign,readonly) CGFloat height;
  25. @end