我在用着
- (void)pageViewController:(UIPageViewController *)pageViewController willTransitionToViewControllers:(NSArray *)pendingViewControllers
跟踪当前可见页面UIPageViewController
。此方法可在 iOS 6 中使用,但我也需要在 iOS 5 中实现此功能,我该怎么做?我试过了
- (void)pageViewController:(UIPageViewController *)pageViewController didFinishAnimating:(BOOL)finished previousViewControllers:(NSArray *)previousViewControllers transitionCompleted:(BOOL)completed
但previousViewControllers
计数始终是一,所以没有帮助,或者我可能遗漏了一些东西