-(UILabel *) titlel{
if (_titlel ==nil) {
_titlel = [[UILabel alloc] init];
/** Setting Text */
[_titlel setText:self.myMessModel.content];
[_titlel Settextalignment:nstextalignmentleft];
Text color
[_titlel settextcolor:[self. Skin Getcelltitlecolor]];
_titlel.numberoflines = 0; MultiRow
Set format
Nsstringdrawingoptions options = Nsstringdrawinguseslinefragmentorigin | nsstringdrawingusesfontleading;
[_titlel setfont:[self. Skin Getdefaulttextfont]];
Screen_size.width screen width wj_home_left_right_gap gap maxfloat Maximum Height
CGRect contentrect = [_titlel.text boundingrectwithsize:cgsizemake (Screen_size.width-2*wj_home_left_right_gap, maxfloat) options:options attributes:@{nsfontattributename: [Self. Skin Getdefaulttextfont]} Context:nil];
[_titlel Setframe:cgrectmake (Wj_home_left_right_gap, Cgrectgetmaxy (self.timeL.frame), ContentRect.size.width, ContentRect.size.height)];
}
return _titlel;
}
Auto-Fit Text height