mirror of
https://github.com/wu736139669/ManagerDemo.git
synced 2026-08-05 05:55:42 +00:00
64 lines
2.0 KiB
Objective-C
64 lines
2.0 KiB
Objective-C
//
|
|
// TableCellLineView.m
|
|
// ManagerDemo
|
|
//
|
|
// Created by xmfish on 14-8-28.
|
|
// Copyright (c) 2014年 ash. All rights reserved.
|
|
//
|
|
|
|
#import "TableCellLineView.h"
|
|
|
|
@implementation TableCellLineView
|
|
|
|
- (id)initWithFrame:(CGRect)frame
|
|
{
|
|
self = [super initWithFrame:frame];
|
|
if (self) {
|
|
// Initialization code
|
|
}
|
|
return self;
|
|
}
|
|
-(void)awakeFromNib
|
|
{
|
|
_leftTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(10, self.bounds.size.height-20, 100, 20)];
|
|
_leftTitleLabel.font = Font_Black(12);
|
|
_leftTitleLabel.textColor = [UIColor grayColor];
|
|
_leftTitleLabel.text = @"";
|
|
_leftTitleLabel.textAlignment = NSTextAlignmentLeft;
|
|
[self addSubview:_leftTitleLabel];
|
|
|
|
_leftInfoLabel = [[UILabel alloc] initWithFrame:CGRectMake(40, self.bounds.size.height-20, 100, 20)];
|
|
_leftInfoLabel.font = Font_Black(12);
|
|
_leftInfoLabel.text = @"";
|
|
_leftInfoLabel.textColor = [UIColor grayColor];
|
|
_leftInfoLabel.textAlignment = NSTextAlignmentRight;
|
|
[self addSubview:_leftInfoLabel];
|
|
|
|
_rightTitleLabel = [[UILabel alloc] initWithFrame:CGRectMake(160, self.bounds.size.height-20, 100, 20)];
|
|
_rightTitleLabel.font = Font_Black(12);
|
|
_rightTitleLabel.textColor = [UIColor grayColor];
|
|
_rightTitleLabel.text = @"";
|
|
_rightTitleLabel.textAlignment = NSTextAlignmentLeft;
|
|
[self addSubview:_rightTitleLabel];
|
|
|
|
_rightInfoLabel = [[UILabel alloc] initWithFrame:CGRectMake(210, self.bounds.size.height-20, 100, 20)];
|
|
_rightInfoLabel.font = Font_Black(12);
|
|
_rightInfoLabel.textColor = [UIColor grayColor];
|
|
_rightInfoLabel.text = @"";
|
|
_rightInfoLabel.textAlignment = NSTextAlignmentRight;
|
|
[self addSubview:_rightInfoLabel];
|
|
|
|
[self addSubview:[ManagerUtil dottedlinewithFrame:CGRectMake(10, self.bounds.size.height-1, self.bounds.size.width-20, 1.0)]];
|
|
}
|
|
|
|
// Only override drawRect: if you perform custom drawing.
|
|
// An empty implementation adversely affects performance during animation.
|
|
- (void)drawRect:(CGRect)rect
|
|
{
|
|
// Drawing code
|
|
|
|
}
|
|
|
|
|
|
@end
|