我怎么能改变这样的颜色uipagecontroler?
UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [?];
pageControl.currentPageIndicatorTintColor = [?];
pageControl.backgroundColor = [?];
pageControl.tintColor = [?];
我已经尝试改变色调颜色whitecolor和背景clearcolor但它不起作用,mabye我想念一些东西吗?
帮助我答案 0 :(得分:0)
在applicationdidfinish Launch in App Delegate
中添加UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageIndicatorTintColor = [UIColor lightGrayColor];
pageControl.currentPageIndicatorTintColor = [UIColor blackColor];
pageControl.backgroundColor = [UIColor whiteColor];