// // FKCardSegmentView.h // FirstLink // // Created by ascii on 2017/5/14. // Copyright © 2017年 FirstLink. All rights reserved. // #import typedef NS_ENUM(NSInteger, kCardSegmentIndex) { kCardSegmentIndexLeft, kCardSegmentIndexRight, }; @class FKCardSegmentView; @protocol FKCardSegmentViewDelegate @optional - (void)cardSegmentView:(FKCardSegmentView *)view didSelectWithVipIndex:(kCardSegmentIndex)vip; @end @interface FKCardSegmentView : UIView @property (nonatomic, weak) id 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