// // KDPOrderTitleCell.m // KuDianProject // // Created by 学丽 on 2019/7/12. // Copyright © 2019 KDP. All rights reserved. // #import "KDPOrderTitleCell.h" @implementation KDPOrderTitleCell -(instancetype)initWithFrame:(CGRect)frame { self=[super initWithFrame:frame]; if (self) { self.textLabel.hidden = true; self.numLabel =[[UILabel alloc]initWithFrame:CGRectMake(0, 10, self.width, 20)]; self.numLabel.textColor=[UIColor colorWithHexString:fontColor]; self.numLabel.font=[UIFont systemFontOfSize:14]; self.numLabel.textAlignment=NSTextAlignmentCenter; [self addSubview:self.numLabel]; self.titlelabel =[[UILabel alloc]initWithFrame:CGRectMake(0, 35, self.width, 25)]; self.titlelabel.font=[UIFont systemFontOfSize:14]; self.titlelabel.textColor=[UIColor colorWithHexString:fontColor]; self.titlelabel.textAlignment=NSTextAlignmentCenter; [self addSubview:self.titlelabel]; UIImageView *lineV=[[UIImageView alloc]initWithFrame:CGRectMake(0, self.height-5, self.width, 5)]; lineV.backgroundColor=[UIColor colorWithHexString:LineColor]; [self addSubview:lineV]; } return self; } //通过此父类方法配置cell是否被选中 - (void)configCellOfSelected:(BOOL)selected { UIColor *textColor = selected ? [UIColor colorWithHexString:ThemeColor] : [UIColor colorWithHexString:fontColor]; self.titlelabel.textColor = textColor; self.numLabel.textColor = textColor; } //通过此父类方法配置cell动画 - (void)showAnimationOfProgress:(CGFloat)progress type:(XLPageTitleCellAnimationType)type { } @end