0

There is some way to bring from this method the current page I am in ?

-(void)pageViewController:(UIPageViewController *)pvc didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed –
Roei Nadam
  • 1,780
  • 1
  • 15
  • 33
  • 1
    possible duplicate of [UIPageViewController: return the current visible view](http://stackoverflow.com/questions/8400870/uipageviewcontroller-return-the-current-visible-view) – Krumelur Jan 26 '15 at 12:20

1 Answers1

0

This is works for Me , thanks to Krumelur !

- (void)pageViewController:(UIPageViewController *)pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed 
{
   if (completed) {
    int currentIndex = ((UIViewController *)[self.pageViewController.viewControllers objectAtIndex:0]).view.tag;
    self.pageControl.currentPage = currentIndex;
     }
  }
Roei Nadam
  • 1,780
  • 1
  • 15
  • 33