1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- //
- // newDetailVC.m
- // jiaPei
- //
- // Created by apple on 16/1/19.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "newDetailVC.h"
- @implementation newDetailVC
- - (void)awakeFromNib {
-
- [super awakeFromNib];
- self.sourceLabel.textColor = contentTextColor;
- self.readCount.textColor = contentTextColor;
- self.contentLabel.textColor = contentTextColor;
- [self.titleLabel setFont:[UIFont scaleSize:17]];
- [self.sourceLabel setFont:[UIFont scaleSize:13]];
- [self.readCount 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
|