123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // FKCardSegmentView.h
- // FirstLink
- //
- // Created by ascii on 2017/5/14.
- // Copyright © 2017年 FirstLink. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger, kCardSegmentIndex) {
- kCardSegmentIndexLeft,
- kCardSegmentIndexRight,
- };
- @class FKCardSegmentView;
- @protocol FKCardSegmentViewDelegate <NSObject>
- @optional
- - (void)cardSegmentView:(FKCardSegmentView *)view didSelectWithVipIndex:(kCardSegmentIndex)vip;
- @end
- @interface FKCardSegmentView : UIView
- @property (nonatomic, weak) id<FKCardSegmentViewDelegate> delegate;
- @property (nonatomic, strong) UIButton *leftButton;
- @property (nonatomic, strong) UIButton *rightButton;
- @property (nonatomic, strong) UILabel *leftButtonLabel;
- @property (nonatomic, strong) UILabel *rightButtonLabel;
- @property (nonatomic, strong) UIImageView *superVipImgView;
- @property (nonatomic, strong) UIImageView *discountImgView;
- - (void)setCardSegmentIndex:(kCardSegmentIndex)segmentIndex;
- @end
|