Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8910711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:45:30+00:00 2026-06-15T03:45:30+00:00

I need to create a book-like app and want to use UIPageViewController. (iPad, horizontal

  • 0

I need to create a book-like app and want to use UIPageViewController. (iPad, horizontal layout with two pages (UIPageViewControllerSpineLocationMid).

To make the screen more appealing I would like to have the view of the controller overlayed with an image or an CAGradientLayer making the spine visible.

I tried adding a subview to the pageViewController, but it seems to get removed when the animated transition starts.

Has anyone got an idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:45:31+00:00Added an answer on June 15, 2026 at 3:45 am

    I solved the problem by adding the CAGradientLayer to the views of the currently displayed sub controllers of the UIPageViewController.
    I had to distinguish between left and right pages (for the double sided landscape mode).
    To achieve this, I created a bool property called “rightPage” and overloaded the setter:

    - (void) setRightPage:(BOOL)rightPage
    {
        _rightPage = rightPage;
        if (!self.spineShadow) {
            self.spineShadow = [CAGradientLayer layer];
        }
        self.spineShadow.zPosition = 5000;
        self.spineShadow.colors = [NSArray arrayWithObjects:
                                   (id)[UIColor clearColor].CGColor,
                                   (id)[[[UIColor blackColor] colorWithAlphaComponent:0.3] CGColor],
                                   nil];
    
        if (rightPage) {
            self.spineShadow.startPoint = CGPointMake(1.00f,0.5f);
            self.spineShadow.endPoint   = CGPointMake(0.00f,0.5f);
        } else {
            self.spineShadow.startPoint = CGPointMake(0.00f,0.5f);
            self.spineShadow.endPoint   = CGPointMake(1.00f,0.5f);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create an app for ipad.Its something like the contacts app in
I would like to create an App with python, but i need that it
I want to put images in each pages of my ViewPager (like a book).
I use MS SQL 2008 R2, I need create a Table with a CHECK
I need to create a class with two properties: LogOutput ExceptionOutput These properties (Actions<>)
I need a graphical needle gauge (like a speedometer etc) for my app but
I need to create a large table of contents for an HTML book but
I need to create a INSERT statement using parameters. Say I have two variable
Good day, I have a requirement to create a kind of book app with
I'd like to create a Custom Contact List ( or address book as it's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.