I have a UITextView
that takes an NSString
with formatting stringWithUTF8String
. It is getting its values from a database and I want the text in the database to be rendered with breaks within the text. I tried using \n
to do this but it gets rendered as text. Doing this in my information page of the app as straight text worked but I think the reason its not working when taking it from the database is because of the formatting.
Any suggestions?
If you want to add newline in Xcode5 / Xcode6 storyboard Attribute-Inspector (AI), you do it this way:
Or, CTRL + Return make a new line.
You can now see the effect into output / View-mode in storyboard.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With