如何将文本和图像添加在一起

发布于 2024-08-19 00:29:14 字数 138 浏览 3 评论 0原文

我正在开发一个基于笔记本的应用程序。它也由注释和图像组成。

我无法找到将图像和文本添加在一起的最佳编码方式。它也是可编辑的,所以我很困惑是采用滚动视图还是文本视图。如果我采用滚动视图,则没有可编辑选项。如果我采用文本视图,我们无法更改图像的框架。

I'm developing a notebook based application. it consists of notes and images also.

I'm unable to find the best way of coding to add images and text together. it is also editable, so I'm getting confused whether to take scroll-view or text view. If I take scroll-view there is no editable option. if I take text view we can't change frames of the image .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

书信已泛黄 2024-08-26 00:29:14

解决如下。采用 Scrollview,管理文本视图和文本视图的大小。插入指定尺寸的图像。像textview,image,tetxview,image等等......

感谢您对解决问题的所有支持。

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.

农村范ル 2024-08-26 00:29:14

您可以使用表视图。将图像放入自定义单元格中,并将视图作为 ImageView。

将 UITextField 作为文本注释的第二个单元格。

或者,您可以使用视图交换方法,其中通过单击“信息”按钮使用翻转过渡并显示注释,文本视图位于图像的背面。 Facebook 应用程序现在对照片的“评论”执行此操作。

You can use a TableView. Put the image in a custom cell with the view as an ImageView.

Put a UITextField as the second cell for text note.

Alternatively, you can use a view swap method, where the text view is on the back of the image by clicking on an "Info" button to use the Flip transition and show the note. The facebook app does this now for "Comments" on photos.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文