点击 UItextfield 时如何显示放大镜?

发布于 2025-01-01 15:08:29 字数 226 浏览 3 评论 0原文

我正在开发注册页面。其中有 6 个文本字段和一个按钮。当我点击最后一个文本字段时,键盘将出现在屏幕上。此时,最后一个文本字段会向上移动以提高可见性。

填充所有文本字段后,键盘也被关闭。现在我想使用放大镜点击编辑最后一个文本字段,该文本字段向上移动,并且放大镜显示在我点击的实际位置。

我想长按文本字段。它将允许放大镜进行编辑。 当点击正常按下时,文本字段会向上移动。

我该如何解决这个问题?

I am developing registration page. In that 6 text fields and a button is there. When I tap last text field, keyboard will appear on screen. At that time last text field move up for visibility.

After fill all text fields keyboard is also dismissed. Now I want edit last text field using magnifying glass tap that text field move up and magnifying glass are showing in actual position where I tapped.

I want tap long press on text field. It will allow to magnifying glass for editing.
When tap normal press it text field moves up.

How can I solve this problem?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文