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.
Asked
Active
Viewed 2,402 times
2
-
1We can help you better if you tell us [what you've tried](http://whathaveyoutried.com). – Tim Sep 14 '12 at 17:03
-
I built the interface of static text and image. I use TextView to display but my content have Photo and Content, but I for the image I use imageview to display, so these two control are different layer mean that ImageView on top and TextView is under. I want to display image and text in TextView. Can I? – user1628083 Sep 14 '12 at 17:08
1 Answers
5
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.

Community
- 1
- 1

Sergey Kalinichenko
- 714,442
- 84
- 1,110
- 1,523
-
@user1628083 You are welcome! Try it out and see if it works for you. If it does, consider accepting the answer by clicking the outline of a check mark next to it to let others know that you are not looking for an improved answer, and to earn a brad-new badge on Stack Overflow. – Sergey Kalinichenko Sep 14 '12 at 17:26