How can I get the pending view controller value from this method?
-(void)pageViewController:(UIPageViewController *)pageViewController willTransitionToViewControllers:(NSArray *)pendingViewControllers {
}
What is the code I can use to get the pending view controller value from this array? Any help would be greatly appreciated?
I have tried using this code:
nextIndex = (int)[pendingViewControllers objectAtIndex:0];
But it keeps returning -1 instead of the next or previous value!