//
// HQTableViewCell.m
// TableViewTest
//
// Created by hq on 16/4/26.
// Copyright © 2016年 hanqing. All rights reserved.
//
#import "HQTableViewCell.h"
@interface HQTableViewCell()
@property (weak, nonatomic) IBOutlet UILabel *label;
@end
@implementation HQTableViewCell
+(instancetype) tableViewCell:(UITableView *)tableView{
NSString *ID=@"cell";
HQTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:ID];
if (cell==nil) {
[tableView registerNib:[UINib nibWithNibName:@"cell" bundle:[NSBundle mainBundle]] forCellReuseIdentifier:ID];
cell=[tableView dequeueReusableCellWithIdentifier:ID];
**cell.textLabel.textColor=[UIColor redColor];
cell.textLabel.highlightedTextColor=[UIColor grayColor];**
}
return cell;
}
-(void)setStr:(NSString *)str{
_str=str;
self.label.text=str;
}
-
(void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];// Configure the view for the selected state
}
@end