如何将UIImage插入UITextView [英] how to insert UIImage into UITextView

查看:104
本文介绍了如何将UIImage插入UITextView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个可编辑的笔记本类型项目。它随时包含一些文字和图像。
in UITextView 如果我们将图像添加为子视图,则修复帧。但我有可编辑的选项。所以我必须在 UITextView 中将图像保存为 NSString 格式,但它应该在uipart中看起来像图像类型。所以请建议我如何处理这个问题。

im working on a editable notebook type project. it consists some text and images at any time. in UITextView if we add images as subview the frames are fixed. but i have editable option. so i must save image as NSString format in UITextView, but it should look image type in uipart. so please suggest me how can i handle this requierment.

提前致谢

推荐答案

解决方法如下。采用Scrollview,管理textview&的大小。插入具有指定大小的图像。就像textview,图像,tetxview,图像一样......

Solved as follows. Taken Scrollview, in that managing size of the textview & inserting image with Specified size. Like textview,image,tetxview, image and goes on...

感谢你们所有的支持来解决这个问题。

Thanks for all your support to solve the issue.

这篇关于如何将UIImage插入UITextView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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