I want to insert image to uitextview like note application in iphone. I successfully insert images but when I save the note, I can not show images that I inserted when click to see detail of the note. How can I fix that?
The note before saving
The note after saving
Here is my code:
Add image after choosing from library
Initial set up when navigate to detail view
2
Answers
In func setup() you need generate attributeString with saving image in attachment.
BUT: If you are storing a whole attributedString in note.content. Just then pass it self.tvContent.attributedString