user1628083
user1628083

Reputation: 261

Display image in UITextView

I have a static screen that I want to display the text content include image in UITextView but when I drag the ImageView, it is on the top of TextView and I want image in textview in case I want to scroll it all together.Thank in advance.

Upvotes: 2

Views: 2416

Answers (1)

Sergey Kalinichenko
Sergey Kalinichenko

Reputation: 726579

UITextView is for displaying textual content. If you would like to mix text with images, the most common solution is to use UIWebView, pre-define a simple HTML template, and then insert the text and an image reference into the template.

Here is a link to an answer that explains how to use UIWebView's loadHTMLString: method.

Upvotes: 5

Related Questions