Skip to content

Content Page Not Right  #6

Open

Description

@XuYanci

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

Activity

  1. XuYanci commented on Feb 5, 2016

    @XuYanci
    Author

    I found that perhaps the setActiveContentIndex function cause the issues.

  2. XuYanci commented on Jun 5, 2016

    @XuYanci
    Author
    • (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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions