PGDatePickManager.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // PGDatePickManager.h
  3. //
  4. // Created by piggybear on 2018/1/7.
  5. // Copyright © 2018年 piggybear. All rights reserved.
  6. //
  7. #import <UIKit/UIKit.h>
  8. #import "PGDatePicker.h"
  9. #import "PGEnumeration.h"
  10. @interface PGDatePickManager : UIViewController
  11. @property (nonatomic, weak) PGDatePicker *datePicker;
  12. @property (nonatomic, assign) PGDatePickManagerStyle style;
  13. @property (nonatomic, assign) BOOL isShadeBackground;
  14. @property (nonatomic, copy) NSString *cancelButtonText;
  15. @property (nonatomic, copy) UIFont *cancelButtonFont;
  16. @property (nonatomic, copy) UIColor *cancelButtonTextColor;
  17. /**
  18. set confirmButton title ,default is Sure
  19. */
  20. @property (nonatomic, copy) NSString *confirmButtonText;
  21. @property (nonatomic, copy) UIFont *confirmButtonFont;
  22. /**
  23. set confirButton titleColor ,default is
  24. */
  25. @property (nonatomic, copy) UIColor *confirmButtonTextColor;
  26. @property (nonatomic, weak) UILabel *titleLabel;
  27. @property (nonatomic, strong)UIColor *headerViewBackgroundColor;
  28. @property (nonatomic, assign) CGFloat headerHeight;
  29. @property (nonatomic, assign) BOOL isShowUnit;
  30. @property (nonatomic, copy) void(^cancelButtonMonitor)();
  31. /**
  32. custom dismiss controller animation, return the total duration of the custom animation, default is nil
  33. */
  34. @property (nonatomic, copy) NSTimeInterval(^customDismissAnimation)(UIView* dismissView, UIView* contentView );
  35. @end