如何将文本和图像添加在一起
我正在开发一个基于笔记本的应用程序。它也由注释和图像组成。
我无法找到将图像和文本添加在一起的最佳编码方式。它也是可编辑的,所以我很困惑是采用滚动视图还是文本视图。如果我采用滚动视图,则没有可编辑选项。如果我采用文本视图,我们无法更改图像的框架。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
解决如下。采用 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.
您可以使用表视图。将图像放入自定义单元格中,并将视图作为 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.