iOS开发--修改UIPageControl的颜色

// UIPageControl

self.pageControl = [[UIPageControl alloc] init];

self.pageControl.translatesAutoresizingMaskIntoConstraints = NO;

self.pageControl.numberOfPages = self.count;

self.pageControl.currentPage = 0;

self.pageControl.currentPageIndicatorTintColor = [UIColor colorWithRed:251/255.0f green:57/255.0f blue:10/255.0f alpha:1.0f];

self.pageControl.pageIndicatorTintColor = [UIColor whiteColor];

[self addSubview:self.pageControl];

iOS开发--修改UIPageControl的颜色_第1张图片
代码实现

你可能感兴趣的:(iOS开发--修改UIPageControl的颜色)