Reputation: 81
When I using UIPageViewController
, the back-side color of the page is always white. How can I change the color ?
Upvotes: 8
Views: 1637
Reputation: 746
Though there are no direct methods to implement this feature, you can leverage the isDoubleSided property of UIPageViewController
to provide your own view that will appear as back side.
For example, assuming your actual page data is [A, B, C]. When providing the page data to the UIPageViewController
, you treat them like [A, A_Back, B, B_Back, C], then provide the same UIViewController
for A_Back, drawing its content flipped horizontally and overlaying the content with Black color with opacity if you prefer.
Upvotes: 0
Reputation: 3675
You are seeing the window background color. You should set the window background color:
appDelegate.window.backgroundColor = [UIColor blackColor];
Upvotes: 0