Save UITextView content in NSString.

Posted by camilo on Stack Overflow See other posts from Stack Overflow or by camilo
Published on 2010-03-11T22:07:15Z Indexed on 2010/03/12 11:07 UTC
Read the original article Hit count: 310

Filed under:
|
|
|

Hi, I'm trying to save the contents of an UITextView into a NSString which I will somehow persist later.

The problem is that the UITextView "text" property doesn't save all the rows in the textView (after touching "return"). I tried print the TextView object and the textView.text, and they're different.

Does anybody know how (after editing the textView) I can save its content into a String (or something else that I can later access and share through different views and persist in the database)?

Thanks a lot. Pretty sure it is simple, but I'm honestly not finding the solution.

© Stack Overflow or respective owner

Related posts about nsstring

Related posts about uitextview