Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chainprayer

macrumors 6502a
Original poster
Feb 10, 2008
638
2
My app generates a random word when a button is pressed. I am using the following code in a switch...

case 0:
result.text = @"One";
break;

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!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.