123456789101112131415161718192021222324252627282930313233343536373839404142 |
- //
- // NewsOfLearnCell.m
- // jiaPei
- //
- // Created by apple on 2018/2/10.
- // Copyright © 2018年 JCZ. All rights reserved.
- //
- #import "NewsOfLearnCell.h"
- @implementation NewsOfLearnCell
- - (void)awakeFromNib {
- [super awakeFromNib];
-
- self.dateLabel.textColor = contentTextColor;
- self.watchLabel.textColor = contentTextColor;
- [self.titleLabel setFont:[UIFont scaleSize:17]];
- [self.dateLabel setFont:[UIFont scaleSize:14]];
- [self.watchLabel setFont:[UIFont scaleSize:14]];
- }
- -(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
|