之前看到UIPageControl都是白色和透明色,今天忽然发现它有一个属性,可以更改它的颜色
//选中状态颜色
[[UIPageControl appearance] setCurrentPageIndicatorTintColor:[UIColor colorWithRed:0 green:175.0/255.0 blue:176.0/255.0 alpha:1.0]];
//未选中状态颜色
[[UIPageControl appearance] setPageIndicatorTintColor:[UIColor colorWithRed:0.996 green:0.788 blue:0.180 alpha:1.000]];
最后
以上就是彩色钢笔最近收集整理的关于UIPageControl属性的全部内容,更多相关UIPageControl属性内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复