更改 Xcode 中标签的值

发布于 2024-10-19 14:33:25 字数 168 浏览 3 评论 0原文

我是 Xcode 新手。我想制作一个进度视图,下面是一个标签。该标签可以将值从 1 更改为 100,就像进度运行时一样。例如:当我点击“开始”按钮时,进度从 1 运行到 100,标签也从 1 运行到 100。当然,我想看到值变化 1,2,3,4...标签。有人可以帮助我吗?

附加的代码详细信息很好。谢谢!

I'm new in Xcode. I want to make a Progress View and below is a label. This label can change value from 1 to 100 just the same when the progress run. For example: when i tap the "Start" button then the progress run from 1 to 100, so does the label run from 1 to 100. Absolutely, i want to see to value change 1,2,3,4... of the label. Can anyone help me?

Code details attached is good. Thanks!

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

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

发布评论

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

评论(1

爱冒险 2024-10-26 14:33:25

您可以使用逻辑来获取答案。

You can use this logic to get your answer.

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