PDA

View Full Version : Text return in a text string?




jimhanika
Sep 1, 2008, 01:24 PM
I've been playing with a few ideas on a database-based app, looking at sqlite, or an array, and came across an issue in both I was wondering if you could help with.

I can't find a way of inserting a return in text that would separate two paragraphs. In the array test, I have a name and a description, and in the text description, that is seen in a scrollable text view, I want to separate two paragraphs, which I think will be much easier to read.

Any ideas? I suspect it will be simple!

Here's a line as an example.
Entry *Toy = [[Entry alloc] initWithName:@"Toy" description:@"An artifact designed to be played with. Another paragraph that is a line space below the first one."];



robbieduncan
Sep 1, 2008, 01:32 PM
Like most other languages \n is a line return. As in @"This is some text\nwith a line return".