HomeTeacherCell.m 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // HomeTeacherCell.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2020/6/10.
  6. // Copyright © 2020 tederen. All rights reserved.
  7. //
  8. #import "HomeTeacherCell.h"
  9. @implementation HomeTeacherCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. self.collectBtn.layer.cornerRadius = 4.f;
  13. self.collectBtn.layer.borderWidth = 0.5f;
  14. self.collectBtn.layer.borderColor = UIColorHex(0xBBBBBB).CGColor;
  15. self.collectBtn.layer.masksToBounds = YES;
  16. [self.collectBtn setTitleColor:UIColorHex(0xBBBBBB) forState:UIControlStateNormal];
  17. }
  18. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  19. [super setSelected:selected animated:animated];
  20. // Configure the view for the selected state
  21. }
  22. + (HomeTeacherCell *)configCell:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
  23. static NSString *cellIdentifer = @"HomeTeacherCell";
  24. HomeTeacherCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
  25. if (cell == nil) {
  26. cell = [[[NSBundle mainBundle] loadNibNamed:@"HomeTeacherCell" owner:nil options:nil] objectAtIndex:0];
  27. }
  28. return cell;
  29. }
  30. @end