开发者

How to add an UIImage to UITextView

开发者 https://www.devze.com 2023-02-19 02:57 出处:网络
I am working on chat message board where I have textView and some fixed number of images. I want that when I select an image it should attach at the end of the text and when I press done the text and

I am working on chat message board where I have textView and some fixed number of images. I want that when I select an image it should attach at the end of the text and when I press done the text and image should be send to other开发者_运维百科 user. Please suggest how to attach an image to UItextView.


I have found a work around for this, I am creating a UIView and am placing the textview with clear color and a frame for the image, so when the user clicks on the existing images it appears on the image frame, this way it gives a feel that the image and the text they both are in the the textarea.

This doesn't answer the question directly, but it is a workaround with which I am currently making the progress.

0

精彩评论

暂无评论...
验证码 换一张
取 消