Forráskód Böngészése

[*] 调整聊天详情页分割线的显示

yanxuyao 9 hónapja
szülő
commit
6ff99bce62

+ 16 - 0
MiMoLive/TUIKit/TUIConversation/BaseCell/CellUI/TUIConversationCell.m

@@ -23,6 +23,7 @@
 
 @property (nonatomic, strong) YYLabel *nameTagLab;
 
+@property (nonatomic, strong) UIView *lineView;//E1E2E8
 
 @end
 
@@ -73,6 +74,13 @@
 
         _notDisturbView = [[UIImageView alloc] init];
         [self.contentView addSubview:_notDisturbView];
+        
+        [self.contentView addSubview:self.lineView];
+        [self.lineView mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.bottom.right.equalTo(self.contentView);
+            make.left.equalTo(self.contentView).offset(82.0);
+            make.height.equalTo(@0.5);
+        }];
 
         [self setSeparatorInset:UIEdgeInsetsMake(0, TConversationCell_Margin, 0, 0)];
 
@@ -564,6 +572,14 @@
     return _nameTagLab;
 }
 
+- (UIView *)lineView{
+    if(!_lineView){
+        _lineView = [[UIView alloc] init];
+        _lineView.backgroundColor = TIMCommonDynamicColor(@"separator_color", @"#E1E2E8");
+    }
+    return _lineView;
+}
+
 - (CGFloat)getWidthWithString:(NSString *)string font:(UIFont *)font
 {
     NSDictionary *attrs = @{NSFontAttributeName:font};

+ 2 - 1
MiMoLive/TUIKit/TUIConversation/UI_Classic/UI/TUIConversationTableView.m

@@ -59,7 +59,8 @@
     self.estimatedRowHeight = TConversationCell_Height;
     self.rowHeight = TConversationCell_Height;
     self.delaysContentTouches = NO;
-    [self setSeparatorColor:TIMCommonDynamicColor(@"separator_color", @"#E1E2E8")];
+//    [self setSeparatorColor:TIMCommonDynamicColor(@"separator_color", @"#E1E2E8")];
+    self.separatorStyle = UITableViewCellSeparatorStyleNone;
     self.delegate = self;
     self.dataSource = self;
     [self addSubview:self.tipsView];