Can we customize the page indicator in UIPageViewController?

后端 未结 11 1998
广开言路
广开言路 2020-12-07 17:30

Now it\'s white dots with black background. What about if I want it to be black dots with white backgrounds?

- (NSInteger)presentationCountForPageViewControl         


        
11条回答
  •  一个人的身影
    2020-12-07 18:26

    This one working perfectly for custom image

    self.pageControl.pageIndicatorTintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"page_indicater"]];
    
    self.pageControl.currentPageIndicatorTintColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"page_indicater_selection"]];
    

提交回复
热议问题