如何在 UIPicker 的选择栏上设置文本

发布于 2024-12-23 06:53:33 字数 124 浏览 1 评论 0原文

我想在 UIPicker 的选择栏上设置“MINS”和“SECS”文本,如下图所示。我该怎么做?

在此处输入图像描述

I want to set text of "MINS" and "SECS" on the UIPicker's selection bar as shown in the following image. How can I do this?

enter image description here

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

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

发布评论

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

评论(1

芯好空 2024-12-30 06:53:33

这些技巧可能对您有用:
如何在 uipickerview 的选择指示器上写入文本修复了选区中的标签UIPickerView 的栏

它只是简单地在 UIPickerView 上添加一个带有文本的 UILabel 。您只需要找到正确的坐标即可很好地放置文本。

These tricks might be useful to you:
how to write text on selection indicator of uipickerview and Fixed labels in the selection bar of a UIPickerView

Its just simply adding a UILabel with your text over the UIPickerView. You only need to find the right coordinates so text will be placed well.

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