Bez popisu

FKCardSegmentView.h 977B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // FKCardSegmentView.h
  3. // FirstLink
  4. //
  5. // Created by ascii on 2017/5/14.
  6. // Copyright © 2017年 FirstLink. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger, kCardSegmentIndex) {
  10. kCardSegmentIndexLeft,
  11. kCardSegmentIndexRight,
  12. };
  13. @class FKCardSegmentView;
  14. @protocol FKCardSegmentViewDelegate <NSObject>
  15. @optional
  16. - (void)cardSegmentView:(FKCardSegmentView *)view didSelectWithVipIndex:(kCardSegmentIndex)vip;
  17. @end
  18. @interface FKCardSegmentView : UIView
  19. @property (nonatomic, weak) id<FKCardSegmentViewDelegate> delegate;
  20. @property (nonatomic, strong) UIButton *leftButton;
  21. @property (nonatomic, strong) UIButton *rightButton;
  22. @property (nonatomic, strong) UILabel *leftButtonLabel;
  23. @property (nonatomic, strong) UILabel *rightButtonLabel;
  24. @property (nonatomic, strong) UIImageView *superVipImgView;
  25. @property (nonatomic, strong) UIImageView *discountImgView;
  26. - (void)setCardSegmentIndex:(kCardSegmentIndex)segmentIndex;
  27. @end