UIAppearance的文档非常差。
我想自定义UIPageController的颜色,但我无法确定要设置哪些属性。当我使用[UIPagecontrol appearance] set时,我可能会得到数百个选项,所以几乎不可能弄清楚什么是什么。
我假设使用UIAppearance代理是可能的,对吧?
谢谢
发布于 2012-12-05 08:41:41
从iOS 6开始,UIPageControl中添加了UIAppearance协议。
您可以自定义的属性包括:
这是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;https://stackoverflow.com/questions/9881088
复制相似问题