I have a few short paragraphs of text that I would like to put in the image in the application. Typically, the image will be on the left side of the text, and the text will flow as you normally expect. The image has different heights and widths and size files of 4-30 kilobytes in size. The text has different lengths and can be from 2 to several paragraphs. There is markup with text, so different lines can be formatted accordingly.
I use UIWebView in my UIView to do this in the fastest way, but I noticed that although my text and images are local, there is a noticeable delay when the UIWebView loads and displays the image and text. Basically, you see the viewing area empty, and then after a short period of time you see the image loading. In most cases, the text appears as loaded in front of the image.
I use the UIWebView 'loadHTMLString' to load local html text and images.
What I want to achieve will look like this:
| [ ] | Some text starts here and is long enough to fil until the end of the line. Then | [image] | the text continues so it wraps around a few more lines to fit the entire | [ ] | height of the image. Eventually, we'll show the text below the image, just like you see in a newspaper. The content would continue at variable length for the rest of the screen.
Is there a better way to display formatted text with images? If there is something better than UIWebView, I would like to move on to this.
source share