I have two lined Label and setting the backgroundColor with an attributedString.
NSString *string = @"This is a UILAbel with two lines";
NSMutableAttributedString *mutableString = [[NSMutableAttributedString alloc]initWithString:
string];
[mutableString setAttributes:@{NSBackgroundColorAttributeName : [UIColor redColor]} range:NSMakeRange(0, string.length)];
If the text makes a line break it fills the backgroundColor to the right border and in the second line it stops at the last character.
But I want the backgroundcolor in the first line just set to the last character too.