将图像添加到UiTextView并发布 [英] Add image to UiTextView and post it

查看:90
本文介绍了将图像添加到UiTextView并发布的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在UITextview中添加笑脸图像以及一些文本,然后当我按下发送按钮时,我想发布Textview的所有数据。

I want to add smily image in UITextview and also some text and then when i press send button all data from Textview i want to post.

推荐答案

您可以使用容器视图,其中包含用于显示图像的 UIImageView UITextField 允许输入文字和 UIButton 按钮以获取文字。

you could use a container view that will include your UIImageView for showing the image and UITextField for allowing to enter the text and UIButton button to grab the text.

以下是你可以使用的方法。

The below is the approach ... which you can use.

 [myContainerView addSubview:myImageView];
 [myContainerView addSubview:myTextView];
 [self.view  addSubview:myContainerView];

这篇关于将图像添加到UiTextView并发布的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆