THDatePickerView.h 906 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // THDatePickerView.h
  3. // rongyp-company
  4. //
  5. // Created by Apple on 2016/11/16.
  6. // Copyright © 2016年 Apple. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @protocol THDatePickerViewDelegate <NSObject>
  10. /**
  11. 保存按钮代理方法
  12. @param timer 选择的数据
  13. */
  14. - (void)datePickerViewSaveBtnClickDelegate:(NSString *)timer;
  15. /**
  16. 取消按钮代理方法
  17. */
  18. - (void)datePickerViewCancelBtnClickDelegate;
  19. @end
  20. @interface THDatePickerView : UIView
  21. @property (copy, nonatomic) NSString *title;
  22. /// 是否自动滑动 默认YES
  23. @property (assign, nonatomic) BOOL isSlide;
  24. /// 选中的时间, 默认是当前时间 2017-02-12 13:35
  25. @property (copy, nonatomic) NSString *date;
  26. /// 分钟间隔 默认5分钟
  27. @property (assign, nonatomic) NSInteger minuteInterval;
  28. @property (weak, nonatomic) id <THDatePickerViewDelegate> delegate;
  29. /**
  30. 显示 必须调用
  31. */
  32. - (void)show;
  33. @end