You can simply customize the alpha of the UIPageViewController UIPageControl.
First you should get it from the UIPageViewController as follows:
- (UIPageControl *)getPageControlForPageViewController:(UIPageViewController *)pageViewController { for (UIView *subview in self.pageViewController.view.subviews) { if ([subview isKindOfClass:[UIPageControl class]]) { return (UIPageControl *) subview; } } return nil; }
Then use the function. I created a property on my ViewController named childPageControl. Give UIPageViewController UIPageControl:
self.childPageControl = [self getPageControlForPageViewController:self.pageViewController];
Then you can adjust the alpha to get a translucent effect:
self.childPageControl.alpha = .5;
You are very limited in what you can do to influence the UIPageViewController UIPageControl, but you can at least achieve this with minimal effort.
saganaut May 30 '14 at 19:39 2014-05-30 19:39
source share