如何将UIImage插入UITextView [英] how to insert UIImage into 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屋!