1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- //
- // MyInfoCell.m
- // smartRhino
- //
- // Created by armin on 2019/11/1.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "MyInfoCell.h"
- @implementation MyInfoCell
- - (void)awakeFromNib {
- [super awakeFromNib];
- // Initialization code
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- + (CGFloat)configCell0Height{
- return 42.5;
- }
- + (CGFloat)configCell1Height{
- return 42.5;
- }
- + (MyInfoCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"MyInfoCell0";
- MyInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil || !cell) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"MyInfoCell" owner:nil options:nil] objectAtIndex:0];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- cell.cell0UserImgView.hidden = YES;
- cell.cell0ErWeiMaImgView.hidden = YES;
- cell.cell0LineView.hidden = NO;
- cell.cell0ValueLabel.text = @"";
-
- cell.cell0UserImgView.layer.masksToBounds = YES;
- cell.cell0UserImgView.layer.cornerRadius = 23/2.0;
-
- return cell;
- }
- + (MyInfoCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"MyInfoCell1";
- MyInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil || !cell) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"MyInfoCell" owner:nil options:nil] objectAtIndex:1];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- cell.cell1LineView.hidden = NO;
- cell.cell1ValueLabel.text = @"";
- return cell;
- }
- @end
|