gpt4 book ai didi

ios - WatchKit UIPageControl 点颜色

转载 作者:可可西里 更新时间:2023-11-01 05:28:22 24 4
gpt4 key购买 nike

当我在看一个 videos from Apple 的时候关于 Apple Watch 及其功能,我注意到页面指示器点的颜色会根据显示的页面而变化。

他们还获得了 Apple Watch Human Interface Guidelines 中彩色圆点的图像应用剖析部分。还要注意彩色标题文本。

enter image description here

通常在 WatchKit我将使用以下代码片段来执行此操作:

let features = ["First", "Second", "Third"]
let controllers = [String](count: features.count, repeatedValue: "FeatureInterfaceController")
self.presentControllerWithNames(controllers, contexts: features)

不幸的是,据我所知,没有一种方法可以访问 currentPageIndicatorTintColorpageIndicatorTintColor,就像您通常作为 UIKit 的一部分那样here (向下滚动到Tint Color)。

我想知道 Apple 是否只是简单地为视频添加了这些颜色,或者它们是否真的会在未来作为 WatchKit 的一部分提供?

也许我错了,有一种方法可以改变这些点的颜色。

enter image description here enter image description here enter image description here

最佳答案

正如 Apple 工程师在开发论坛中所写,目前无法自定义页面控件的颜色。

来源:https://devforums.apple.com/message/1100695#1100695

关于ios - WatchKit UIPageControl 点颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28822182/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com