Problem With New Line Character.

Hi,

I created a text field with “display.newText” and I want to put some lines into it and have the newline character after each addition so it shows several lines at once, same thing we do with “\n” in C/C++.

I’ve read the documentation regarding this at herebut it was confusing and could not achieve that effect. So I add lines to my text field like this:

myTextField.text = "First line."  

and then add the second line with new line character:

myTextField.text = myTextField.text .. "nSecond line."  

but that won’t work. So is “n” the new line character in Corona? Atleast that’s what I understood from that documentation.

I even tried to have fixed width and height (even though I do not want it) and then tried the above, still no result.

Thanks.

More info here:

http://forums.coronalabs.com/topic/33466-displaynewtext-n-newline-not-working-on-ios/

More info here:

http://forums.coronalabs.com/topic/33466-displaynewtext-n-newline-not-working-on-ios/