Text return in a text string?

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

  1. macrumors newbie

    Joined:
    Jun 3, 2006
    Location:
    London
    #1
    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. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Like most other languages \n is a line return. As in @"This is some text\nwith a line return".
     

Share This Page