将 UImageVIew 插入 UITextField
如何将图像添加到文本字段?我在一些应用程序中看到了它,但无法绕过它。同样基于光标的位置,imageView 将被初始化(将图像添加到下一行)。谢谢。
How can I add an image to a textfield? I saw it in a few apps, but can't get around it. Also based on the location of the curser, the imageView will be initialized (add image to next line). Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您真的意味着将图像插入文本字段的文本框中,我认为这是不可能的。你想实现什么目标?可能有更合适的方法来做到这一点。
If you really mean insert an image into the text box of the textfield I don't believe this is possible. What are you trying to accomplish? There are probably more appropriate ways of doing it.
是的,我们可以使用以下代码将 imageview 插入文本字段。
浏览一下这段代码。
Yes We can insert imageview into textfield with the following code.
Go through this code.