I want to display in a UItableViewCell, text like
line1
line2
I get it from an xml tag like line1 line2
I’ve tried a lot of things, like:
<br/> (also <br>),
\n which only displays "line1 \n line2",
<![CDATA[<br >]]> which only displays "line1 <br> line2".
Thanks for the help
are you setting the text like:
cell.textLabel.text = myText?I that case you are sending it to an UILabel, and UILabels can’t have linebreaks.
What you can try is to create a custom cell with an UITextView and send your text there.
Example of a custom cell:
The tableview class:
quickListViewCell.h
quickListViewCell.m
Create a UITableViewCell in IB and set the identifier to “quickListViewCell”.