|
|
@@ -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};
|