gpt4 book ai didi

ios - UIPageControl + UI外观

转载 作者:可可西里 更新时间:2023-11-01 05:15:08 25 4
gpt4 key购买 nike

UIAppearance 的文档非常糟糕。

我想为 UIPageController 自定义颜色,但我不知道要设置哪些属性。当我进入 [UIPagecontrol appearance] set 时,我可能会得到数百个选项,所以几乎不可能弄清楚是什么。

我假设 UIAppearance 代理是可能的,对吧?

谢谢

最佳答案

UIAppearance 协议(protocol)从 iOS 6 开始添加到 UIPageControl

您可以自定义的属性有:

  • 点色
  • 突出显示的点色调颜色

这是 UIPageControl.h 的摘录,您可以看到这些 UIAppearance 添加项仅适用于 iOS 6。

@property(nonatomic,retain) UIColor *pageIndicatorTintColor NS_AVAILABLE_IOS(6_0) UI_APPEARANCE_SELECTOR;
@property(nonatomic,retain) UIColor *currentPageIndicatorTintColor NS_AVAILABLE_IOS(6_0) UI_APPEARANCE_SELECTOR;

关于ios - UIPageControl + UI外观,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9881088/

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