ios pageControl的简单设置

 _pageControl = [[UIPageControl alloc] initWithFrame:rect];
 _pageControl.userInteractionEnabled = NO;
//设置当前页小圆钮的颜色
_pageControl.currentPageIndicatorTintColor = [UIColor blackColor];
 //设置未选页小圆钮的颜色
_pageControl.pageIndicatorTintColor = [UIColor grayColor];

你可能感兴趣的:(ios pageControl的简单设置)