// // NewListNoImg.m // jiaPei // // Created by apple on 16/4/13. // Copyright © 2016年 JCZ. All rights reserved. // #import "NewListNoImg.h" @implementation NewListNoImg - (void)awakeFromNib { [super awakeFromNib]; self.dateLabel.textColor = contentTextColor; self.countLabel.textColor = contentTextColor; self.contentLabel.textColor = contentTextColor; [self.titleLabel setFont:[UIFont scaleSize:17]]; [self.dateLabel setFont:[UIFont scaleSize:13]]; [self.countLabel setFont:[UIFont scaleSize:13]]; [self.contentLabel setFont:[UIFont scaleSize:15]]; } -(void)drawRect:(CGRect)rect { CGFloat y = self.height - 2; CGFloat w = self.width - 10; CGContextRef context =UIGraphicsGetCurrentContext(); CGContextSetStrokeColorWithColor(context, contentTextColor.CGColor); CGFloat length[2] = {5,5}; CGContextSetLineDash(context, 20, length, 2); CGContextMoveToPoint(context, 10, y); CGContextAddLineToPoint(context, w, y); CGContextStrokePath(context); } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end