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 9153249
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:14:34+00:00 2026-06-17T12:14:34+00:00

When I navigate through UIPageViewController faster than its transition animation I am getting ‘

  • 0

When I navigate through UIPageViewController faster than its transition animation I am getting ‘Unbalanced calls to begin/end appearance transitions for <MyDataViewController>‘ and one of the two views in landscape isn’t shown until I try to turn the page.

Anybody has an idea to solve this bug?

  • 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-17T12:14:35+00:00Added an answer on June 17, 2026 at 12:14 pm

    Solved following these steps:
    1- Declare a flag to indicate that the animation has finished or not:

    BOOL pageAnimationFinished;
    

    2- Set this flag to true in viewDidLoad:

    pageAnimationFinished = YES;
    

    3- Disable tapGesture for the pageViewController and assign ‘self’ to panGestureRecognizer delegate:

    for (UIGestureRecognizer * gesRecog in self.pageViewController.gestureRecognizers)
    {
        if ([gesRecog isKindOfClass:[UITapGestureRecognizer class]])
            gesRecog.enabled = NO;
        else if ([gesRecog isKindOfClass:[UIPanGestureRecognizer class]])
            gesRecog.delegate = self;
    }
    

    4- Allow/Disallow panGestureRecognizer through the following gesture recognizer delegate method:

    -(BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer
    {
        if ([gestureRecognizer isKindOfClass:[UIPanGestureRecognizer class]] && ([gestureRecognizer.view isEqual:self.view] || [gestureRecognizer.view isEqual:self.pageViewController.view]))
        {
            UIPanGestureRecognizer * panGes = (UIPanGestureRecognizer *)gestureRecognizer;
            if(!pageAnimationFinished || (currentPage < minimumPage && [panGes velocityInView:self.view].x < 0) || (currentPage > maximumPage && [panGes velocityInView:self.view].x > 0))
                return NO;
            pageAnimationFinished = NO;
        }
        return YES;
    }
    

    5- Add the following pageViewController delegate method:

    - (void)pageViewController:(UIPageViewController *)pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed
    {
        pageAnimationFinished = YES;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to navigate through all the focusable elements on my
In my application you can navigate through several Activities until the Activity stack is
The following code gives a NullReferenceException since XPathSelectElement can't navigate through the XPath expression
I have this menu structure that is used to navigate through content slider panels.
I usually use a TabControl and somehow hide the tabs and navigate through them.
I'm looking to create an interface where the user can navigate through large volumes
Hey guys I'm trying to make a GUI which can navigate through JTextAreas when
I'm using an array of images with next/previous functions to navigate through the images.
How can I navigate through my table view with the arrow keys. Much like
I am using swipes to navigate through the pages of my jQuery mobile /

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.