I'm building a Social App where users can post a blog with content of type NSAttributedString
(supporting Text-color, Bold, Italic,..). How should I send this NSAttributedString
content to Server, so that when I receive it, I can populate it to the UITextview
without any lost in decoration (Text-color, Bold, Italic, ..).
I tried sending an NSString
to server, but no luck, the text I received back is something unreadable when using [UITextView setAttributedString]
.
I guess there should be some kinds of encode and decode right?