How to set background color for UIPageViewController?

Bartłomiej Semańczyk picture Bartłomiej Semańczyk · Aug 4, 2015 · Viewed 7.9k times · Source

How to set color for background view in UIPageViewController? Is it possible to do this in Storyboard?

enter image description here

Answer

AmsalK picture AmsalK · Aug 4, 2015

edit: I thought the question was about UIPageControl.

You should be able to simply modify the color of the UIPageViewController's view:

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor blueColor]; //Set to any color.
}