123456789101112131415161718192021222324252627282930313233343536 |
- //
- // HomeTeacherCell.m
- // smartRhino
- //
- // Created by niuzhen on 2020/6/10.
- // Copyright © 2020 tederen. All rights reserved.
- //
- #import "HomeTeacherCell.h"
- @implementation HomeTeacherCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- self.collectBtn.layer.cornerRadius = 4.f;
- self.collectBtn.layer.borderWidth = 0.5f;
- self.collectBtn.layer.borderColor = UIColorHex(0xBBBBBB).CGColor;
- self.collectBtn.layer.masksToBounds = YES;
- [self.collectBtn setTitleColor:UIColorHex(0xBBBBBB) forState:UIControlStateNormal];
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- + (HomeTeacherCell *)configCell:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"HomeTeacherCell";
- HomeTeacherCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"HomeTeacherCell" owner:nil options:nil] objectAtIndex:0];
- }
- return cell;
- }
- @end
|