iPhone: UITextView wrap around UIImage?

后端 未结 3 1346
时光说笑
时光说笑 2020-12-19 05:31

How do I get a UITextView to wrap its text around a UIImage like in this image? \"alt

The image size is

3条回答
  •  醉话见心
    2020-12-19 06:14

    If somebody has a better solution, please bring it on, but i usually had to revert to html to do this kind of trick.

    You could use two textViews and one imageView to achieve this programmatically, but i'll be a couple of LOC to write. You would have to figure out the size of the image, set the first table view to fit nicely next to, than figure out where the string is longer than visible, cut it off an go on on the next textView.

    The same could be achieved by a simple local UIWebView

提交回复
热议问题