UIPageControl - How to make the background transparent?

后端 未结 8 2626
無奈伤痛
無奈伤痛 2021-02-18 21:30

I am using UIPageControl and trying to make the background transparent.

UIPageControl *pageControl = [UIPageControl appearance];
pageControl.pageInd         


        
8条回答
  •  隐瞒了意图╮
    2021-02-18 22:25

    Try this:

    pageControl = [UIPageControl appearance];
    
    //for change the bullets color
    pageControl.pageIndicatorTintColor = [UIColor colorWithRed:(129.0/255) green:(129.0/255) blue:(129.0/255) alpha:1.0];
    pageControl.currentPageIndicatorTintColor = [UIColor colorWithRed:(06.0/255) green:(122.0/255) blue:(145.0/255) alpha:1.0];
    
    pageControl.backgroundColor = [UIColor clearColor];
    

提交回复
热议问题