Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content Page Not Right #6

Open
XuYanci opened this issue Feb 5, 2016 · 2 comments
Open

Content Page Not Right #6

XuYanci opened this issue Feb 5, 2016 · 2 comments

Comments

@XuYanci
Copy link

XuYanci commented Feb 5, 2016

When you swipe page forward and backward quickly , the content page will not the right index page .

@XuYanci
Copy link
Author

XuYanci commented Feb 5, 2016

I found that perhaps the setActiveContentIndex function cause the issues.

@XuYanci
Copy link
Author

XuYanci commented Jun 5, 2016

  • (void)pageViewController:(UIPageViewController )pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed
    {
    /
    Add this to prevent this error*/
    if (!completed) {
    return;
    }

    UIViewController *viewController = self.pageViewController.viewControllers[0];

    // Select tab
    NSUInteger index = [self indexForViewController:viewController];
    [self selectTabAtIndex:index didSwipe:YES];
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant