123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- //
- // ChatMsgDetailChatInfoCell.m
- // smartRhino
- //
- // Created by armin on 2019/11/7.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "ChatMsgDetailChatInfoCell.h"
- @implementation ChatMsgDetailChatInfoCell
- - (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 100;
- }
- + (CGFloat)configCell1Height{
- return 50;
- }
- + (CGFloat)configCell2Height{
- return 65;
- }
- + (CGFloat)configCell3Height{
- return 272;
- }
- + (CGFloat)configCell4Height{
- return 65;
- }
- + (CGFloat)configCell5Height{
- return 65;
- }
- + (ChatMsgDetailChatInfoCell *)configCell0:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"ChatMsgDetailChatInfoCell0";
- ChatMsgDetailChatInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatMsgDetailChatInfoCell" owner:nil options:nil] objectAtIndex:0];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- return cell;
- }
- + (ChatMsgDetailChatInfoCell *)configCell1:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"ChatMsgDetailChatInfoCell1";
- ChatMsgDetailChatInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatMsgDetailChatInfoCell" owner:nil options:nil] objectAtIndex:1];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- return cell;
- }
- + (ChatMsgDetailChatInfoCell *)configCell2:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"ChatMsgDetailChatInfoCell2";
- ChatMsgDetailChatInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatMsgDetailChatInfoCell" owner:nil options:nil] objectAtIndex:2];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- cell.cell2Switch.hidden = YES;
- cell.cell2ValueLabel.hidden = NO;
- cell.cell2RightArrowImg.hidden = NO;
-
- [cell.cell2Switch setTintColor:RGB(187, 187, 187)];
- [cell.cell2Switch setOnTintColor:RGB(57, 121, 211)];
- cell.cell2Switch.transform = CGAffineTransformMakeScale(0.8, 0.8);
-
- cell.cell2LineView.hidden = NO;
-
- return cell;
- }
- + (ChatMsgDetailChatInfoCell *)configCell3:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"ChatMsgDetailChatInfoCell3";
- ChatMsgDetailChatInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatMsgDetailChatInfoCell" owner:nil options:nil] objectAtIndex:3];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- cell.cell3LineView.hidden = NO;
- return cell;
- }
- + (ChatMsgDetailChatInfoCell *)configCell4:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"ChatMsgDetailChatInfoCell4";
- ChatMsgDetailChatInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatMsgDetailChatInfoCell" owner:nil options:nil] objectAtIndex:4];
- }
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- cell.cell4LineView.hidden = NO;
- return cell;
- }
- + (ChatMsgDetailChatInfoCell *)configCell5:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath{
- static NSString *cellIdentifer = @"ChatMsgDetailChatInfoCell5";
- ChatMsgDetailChatInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifer];
- if (cell == nil) {
- cell = [[[NSBundle mainBundle] loadNibNamed:@"ChatMsgDetailChatInfoCell" owner:nil options:nil] objectAtIndex:5];
- }
- cell.ChatImgV.layer.cornerRadius = 4.f;
- cell.ChatImgV.layer.masksToBounds = YES;
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
- return cell;
- }
- @end
|