UIPageControl - How to make the background transparent?

后端 未结 8 2634
無奈伤痛
無奈伤痛 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:05

    It could work if you set the background color of the UIPageControl to a background image that looks the same as your VC's background color:

    [UIPageControl appearance].backgroundColor  = [UIColor colorWithPatternImage:[UIImage imageNamed:@"pageControllerBackground"]];
    

提交回复
热议问题