iOS5 中的 UIActivityIndi​​cator 应该有一个颜色选项。如何实施?

发布于 2025-01-01 17:43:42 字数 329 浏览 2 评论 0原文

在iOS5中,似乎是一个选项< /a> ** 使用带有颜色的 UIActivityIndi​​cator 来代替过去的灰/白色选项。

我不知道如何实现这一点。有人这样做过吗?又如何呢?

非常感谢..

** 这是苹果有关该主题的文档的链接。

In iOS5, there appears to be an option ** to use the UIActivityIndicator with a color in place of the gray/white options of the past.

I cannot figure out how to implement this. Has anyone done this? and how?

Many thanks..

** this is a link to Apple's documentation on the subject.

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

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

发布评论

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

评论(1

初相遇 2025-01-08 17:43:42

只需将 UIColor 分配给 color 属性即可:

activityIndicator.color = [UIColor redColor];

Just assign a UIColor to the color property:

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