Page break in result.text

Discussion in 'iOS Programming' started by chainprayer, May 10, 2010.

  1. chainprayer macrumors 6502a

    Joined:
    Feb 10, 2008
    #1
    My app generates a random word when a button is pressed. I am using the following code in a switch...

    result.text then outputs to a text box.

    I'm looking for a way to insert a line break into the result.text line. For example, I would like my text box to show the words "One" and "Two" on two separate lines. I was thinking something similar to result.text = @"One /n Two";. Any ideas?

    Thank you!
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State

Share This Page