I have an NSString like this
NSString *string = @"textTextTextTextText<br>textTextTextText<br>TextTextText"
I want to set this NSString to be the text of my UICell with a new line on each
tag found on the string. How could I do that?
I’ve tried this, without success:
cell.textLabel.text = [[text componentsSeparatedByCharactersInSet:[NSCharacterSet newlineCharacterSet]] componentsJoinedByString:@"<br>"];
How about:
or, if you’re using Swift
Strings