首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >UIPageControl + UIAppearance

UIPageControl + UIAppearance
EN

Stack Overflow用户
提问于 2012-03-27 06:56:05
回答 1查看 3.9K关注 0票数 4

UIAppearance的文档非常差。

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

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

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-12-05 08:41:41

从iOS 6开始,UIPageControl中添加了UIAppearance协议。

您可以自定义的属性包括:

  • Dot tint colour
  • Highlighted dot tint

这是UIPageControl.h的摘录,因为你可以看到这些UIAppearance添加只在iOS 6中可用。

代码语言:javascript
复制
@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;
票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9881088

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档