CommonEditorRangeCell.h 941 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // CommonEditorRangeCell.h
  3. // RedAnt Mobile
  4. //
  5. // Created by Jack on 2017/11/13.
  6. // Copyright © 2017年 Ray. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger, CommonEditorRangeType) {
  10. CommonEditorRangeTypeDefault,
  11. CommonEditorRangeTypeDate
  12. };
  13. @class CommonEditorRangeCell;
  14. @protocol CommonEditorRangeDelegate <NSObject>
  15. @optional
  16. - (void)commonEditorRangeCell:(CommonEditorRangeCell *)cell didChangeMinValue:(NSString *)minValue maxValue:(NSString *)maxValue atIndexPath:(NSIndexPath *)indexPath;
  17. @end
  18. @interface CommonEditorRangeCell : UITableViewCell
  19. @property (nonatomic,assign) UIKeyboardType keyboardType;
  20. @property (nonatomic,assign) CommonEditorRangeType type;
  21. @property (nonatomic,weak) id<CommonEditorRangeDelegate> delegate;
  22. @property (nonatomic,strong) NSIndexPath *indexPath;
  23. - (void)setMinValue:(NSString *)min maxValue:(NSString *)max;
  24. - (void)setTitle:(NSString *)title;
  25. @end