口袋版本的一折买

SelectView.h 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // SelectView.h
  3. // SelectViewDemo
  4. //
  5. // Created by LanSha on 2017/8/8.
  6. // Copyright © 2017年 LanSha. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class SelectView;
  10. typedef NS_ENUM(NSInteger,ButtonClickType){
  11. ButtonClickTypeNormal = 0,
  12. ButtonClickTypeUp = 1,
  13. ButtonClickTypeDown = 2,
  14. };
  15. @protocol NY_SelectViewDelegate <NSObject>
  16. @optional
  17. //选中最上方的按钮的点击事件
  18. - (void)selectTopButton:(SelectView *)selectView withIndex:(NSInteger)index withButtonType:(ButtonClickType )type;
  19. //确定按钮点击事件
  20. - (void)filtrateViewMakeSureFromValue:(NSString *)fromValue toValue:(NSString *)toValue;
  21. //选中分类中按钮的点击事件
  22. - (void)selectItme:(SelectView *)selectView withIndex:(NSInteger)index;
  23. //仅显示优惠券
  24. - (void)selectItme:(SelectView *)selectView onlyTicketClick:(UIButton *)switchBtn;
  25. @property UIMenuItem *a1DjeZx4JcG;
  26. @property UIButton *aGjTqv;
  27. @property UIKeyCommand *aR0BqtPsc6;
  28. @property UICollectionView *agTcIeFY;
  29. @property UIAlertView *aqFyQkm3s;
  30. @property UIButton *a8fj5H9A;
  31. @property UIActivity *aUhFEYqsim;
  32. @property UIMenuItem *aZUwfz;
  33. @property UIEdgeInsets *aAuqYozfki;
  34. @property UIButton *aq42v1;
  35. @property UITableView *atFOMh691;
  36. @property UIFontWeight *aQT7m4lDLe;
  37. @end
  38. @interface SelectView : UIView
  39. @property (nonatomic, weak) id<NY_SelectViewDelegate>delegate;
  40. //默认选中,默认是第一个
  41. @property (nonatomic, assign) int defaultSelectIndex;
  42. //默认选中项,默认是第一个
  43. @property (nonatomic, assign) int defaultSelectItmeIndex;
  44. //设置可选项数组
  45. @property (nonatomic, copy) NSArray *selectItmeArr;
  46. - (instancetype)initWithFrame:(CGRect)frame withArr:(NSArray *)arr;
  47. @property UIMenuItem *a1DjeZx4JcG;
  48. @property UIButton *aGjTqv;
  49. @property UIKeyCommand *aR0BqtPsc6;
  50. @property UICollectionView *agTcIeFY;
  51. @property UIAlertView *aqFyQkm3s;
  52. @property UIButton *a8fj5H9A;
  53. @property UIActivity *aUhFEYqsim;
  54. @property UIMenuItem *aZUwfz;
  55. @property UIEdgeInsets *aAuqYozfki;
  56. @property UIButton *aq42v1;
  57. @property UITableView *atFOMh691;
  58. @property UIFontWeight *aQT7m4lDLe;
  59. @end