UIPageViewController setViewControllers, UIPageControl не показывает правильный текущий номер

Я использую UIPageViewController с горизонтальной прокруткой ... пока пользователь выполняет прокрутку, UIPageControl работает правильно, проблема возникает при программном переходе на следующую или предыдущую страницу

[self.pageViewController setViewControllers:@[[self viewControllerWithIndex:index]] direction:UIPageViewControllerNavigationDirectionReverse animated:YES completion:nil];

То, что индекс UIPageControl неправильный (я бы сам предоставил этот индекс, но не могу получить доступ к UIPageControl UIPageViewController)

- (NSInteger)presentationCountForPageViewController:(UIPageViewController *)pageViewController {
    return IntroScreensCount;
}

- (NSInteger)presentationIndexForPageViewController:(UIPageViewController *)pageViewController {
    return 0;
}

Как правильно получить текущий точечный индекс UIPageControl при программном изменении страницы UIPageViewController?

Ответы на вопрос(1)

Ваш ответ на вопрос