Text return in a text string?

Discussion in 'iOS Programming' started by jimhanika, Sep 1, 2008.

  1. jimhanika macrumors newbie

    Jun 3, 2006
    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:mad:"Toy" description:mad:"An artifact designed to be played with. Another paragraph that is a line space below the first one."];
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Like most other languages \n is a line return. As in @"This is some text\nwith a line return".

Share This Page