uiimageview - iphone: Text around an image -


Is it possible to go around a single image? Like in the picture?

I'm also going to go with UIWebView. You can probably guess what they are doing by scrolling up and down the page. In my experience, a UIWebView scroll is more sluggish than a UIScrollView, and comes at a stop faster.

If you actually set your heart to use UIScrollView to create this effect, then you can use this method:

CGSize Size = [textView.text sizeWithFont: textView.font constrainedstose: CGSizeMake (frame.ize.width, 99 99) LineBrake Mode: UILineBreakModeWordWrap];

Get your text and place it in a loop. With each repetition of the loop, cut one word from the end Compare the size with the method given above, and if it is long, then go through the loop again. When size.height is smaller than you want, you know how much text to add to the top text view (to the right of the image). Add the remaining text in the text view below the image, using the above method to frame the size.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -