Displaying line breaks from a sqlite DB text field

299 views
Skip to first unread message

dreamer...@gmail.com

unread,
Aug 12, 2008, 1:43:27 AM8/12/08
to iPhone SDK Development
Hi,
I have a table view with one cell that has a UITextView as a subview
to show multiple lines of text. The text with multiple lines is
displayed correctly except the line breaks are not rendered.
When I look at the table in an SQLiteMananger application the
linebreaks are there.
I have tried adding '\n', '\r\n\, etc. to the text in the DB field but
to no avail.

Anyone any ideas?

dreamer...@gmail.com

unread,
Aug 21, 2008, 4:31:20 AM8/21/08
to iPhone SDK Development
Ok, I have been able to solve this one. I was using SQLiteManager to
manage the database and I needed to enter the line break using ctrl-J
instead of 'enter' or code like \n etc.
Reply all
Reply to author
Forward
0 new messages