UIPageControl - How to make the background transparent?

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

    As of Xcode 6.1.1 and iOS 8.1.1, I know that setting the background color of a UIPageControl object to the clear color worked for me.

    [[self pageControl] setBackgroundColor:[UIColor clearColor]];
    

提交回复
热议问题